Click here to Skip to main content
15,914,404 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to call 1 class method or constructor in other class ? Pin
OriginalGriff21-May-09 8:31
mveOriginalGriff21-May-09 8:31 
GeneralRe: how to call 1 class method or constructor in other class ? Pin
harold aptroot21-May-09 7:06
harold aptroot21-May-09 7:06 
GeneralRe: how to call 1 class method or constructor in other class ? Pin
musefan21-May-09 6:37
musefan21-May-09 6:37 
QuestionGet/Set for List<string> in C#</string> Pin
ipstefan21-May-09 3:07
ipstefan21-May-09 3:07 
AnswerRe: Get/Set for List in C# Pin
musefan21-May-09 3:12
musefan21-May-09 3:12 
GeneralRe: Get/Set for List in C# Pin
ipstefan21-May-09 3:15
ipstefan21-May-09 3:15 
GeneralRe: Get/Set for List in C# Pin
musefan21-May-09 3:20
musefan21-May-09 3:20 
AnswerRe: Get/Set for List in C# Pin
Anthony Mushrow21-May-09 3:18
professionalAnthony Mushrow21-May-09 3:18 
It doesn't work because your creating a new instance of DefCompareProperty. Each new instance has its own List and they are kept completely separate.

You can do this two ways, make lst in your DefCompareProperty class static so that there is only one of them which all instances share. Or pass an instance of the DefCompareProperty class to each of your other classes to use so that they both use the same one.

EDIT: If you are passing the same instance around already then damn, I don't know what's going on.

My current favourite word is: Delicious!
-SK Genius

Game Programming articles start -here[^]-

GeneralRe: Get/Set for List in C# Pin
ipstefan21-May-09 3:49
ipstefan21-May-09 3:49 
AnswerRe: Get/Set for List in C# Pin
Luc Pattyn21-May-09 3:36
sitebuilderLuc Pattyn21-May-09 3:36 
GeneralRe: Get/Set for List in C# Pin
musefan21-May-09 3:45
musefan21-May-09 3:45 
GeneralRe: Get/Set for List in C# Pin
PIEBALDconsult21-May-09 4:09
mvePIEBALDconsult21-May-09 4:09 
GeneralRe: Get/Set for List in C# Pin
Luc Pattyn21-May-09 4:21
sitebuilderLuc Pattyn21-May-09 4:21 
GeneralRe: Get/Set for List in C# Pin
musefan21-May-09 4:37
musefan21-May-09 4:37 
GeneralRe: Get/Set for List in C# Pin
Paddy Boyd21-May-09 5:24
Paddy Boyd21-May-09 5:24 
GeneralRe: Get/Set for List in C# Pin
Luc Pattyn21-May-09 5:30
sitebuilderLuc Pattyn21-May-09 5:30 
Questionexcel x-axis in Time format 00:00:00 using C# Pin
carnister21-May-09 2:49
carnister21-May-09 2:49 
QuestionSave to default program files folder Pin
Jon Henry21-May-09 2:30
Jon Henry21-May-09 2:30 
AnswerRe: Save to default program files folder Pin
musefan21-May-09 2:35
musefan21-May-09 2:35 
AnswerRe: Save to default program files folder [modified] Pin
Luc Pattyn21-May-09 3:41
sitebuilderLuc Pattyn21-May-09 3:41 
GeneralRe: Save to default program files folder Pin
Jon Henry21-May-09 13:00
Jon Henry21-May-09 13:00 
GeneralRe: Save to default program files folder Pin
Luc Pattyn21-May-09 13:35
sitebuilderLuc Pattyn21-May-09 13:35 
QuestionCurious question as I am c# developer. [modified] Pin
Blubbo21-May-09 2:23
Blubbo21-May-09 2:23 
AnswerRe: Curious question as I am c# developer. Pin
musefan21-May-09 2:33
musefan21-May-09 2:33 
AnswerRe: Curious question as I am c# developer. Pin
EliottA21-May-09 3:01
EliottA21-May-09 3:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.