Click here to Skip to main content
15,915,319 members
Home / Discussions / C#
   

C#

 
GeneralRe: References to an object Pin
Scott Dorman11-Mar-07 15:32
professionalScott Dorman11-Mar-07 15:32 
GeneralRe: References to an object Pin
Zoltan Balazs11-Mar-07 17:31
Zoltan Balazs11-Mar-07 17:31 
GeneralRe: References to an object Pin
Scott Dorman11-Mar-07 17:49
professionalScott Dorman11-Mar-07 17:49 
AnswerRe: References to an object Pin
Guffa11-Mar-07 16:26
Guffa11-Mar-07 16:26 
GeneralRe: References to an object Pin
Zoltan Balazs11-Mar-07 17:41
Zoltan Balazs11-Mar-07 17:41 
GeneralRe: References to an object Pin
Zoltan Balazs12-Mar-07 7:15
Zoltan Balazs12-Mar-07 7:15 
QuestionHow to assign value to generic list member Pin
AndrusM11-Mar-07 10:46
AndrusM11-Mar-07 10:46 
AnswerRe: How to assign value to generic list member Pin
S. Senthil Kumar11-Mar-07 14:07
S. Senthil Kumar11-Mar-07 14:07 
Your problem is because GroupList happens to hold structs, instead of classes. The reason why the compiler refuses to compile is because
<br />
GroupList[i++]<br />

returns a copy of the actual struct, because structs happen to be value types. And the assignment of e to the Footer property would happen on the copy and not on the original structure in the list. To solve the problem, you can explicitly modify the copy and put it back in the list. Something like
Group x = GroupList[i];
x.Footer = e;
GroupList[i] = x;


Regards
Senthil [MVP - Visual C#]
_____________________________
My Blog | My Articles | My Flickr | WinMacro

QuestionAppDomain + Reflection Pin
AJ12311-Mar-07 9:58
AJ12311-Mar-07 9:58 
AnswerRe: AppDomain + Reflection Pin
S. Senthil Kumar11-Mar-07 14:11
S. Senthil Kumar11-Mar-07 14:11 
QuestionDataGridView IDENTITY column binding problem Pin
Deian11-Mar-07 9:13
Deian11-Mar-07 9:13 
AnswerRe: DataGridView IDENTITY column binding problem Pin
Deian11-Mar-07 11:31
Deian11-Mar-07 11:31 
Questionsimple 2d graphics with c# Pin
liquidfluid11-Mar-07 8:35
liquidfluid11-Mar-07 8:35 
AnswerRe: simple 2d graphics with c# Pin
Ed.Poore11-Mar-07 8:50
Ed.Poore11-Mar-07 8:50 
Questionmarshaling of the const char * Pin
MinaFawzi11-Mar-07 6:21
MinaFawzi11-Mar-07 6:21 
AnswerRe: marshaling of the const char * Pin
Ed.Poore11-Mar-07 7:52
Ed.Poore11-Mar-07 7:52 
QuestionPassing member variables as private method arguments? Pin
David Veeneman11-Mar-07 5:38
David Veeneman11-Mar-07 5:38 
AnswerRe: Passing member variables as private method arguments? Pin
S. Senthil Kumar11-Mar-07 5:55
S. Senthil Kumar11-Mar-07 5:55 
GeneralRe: Passing member variables as private method arguments? Pin
David Veeneman11-Mar-07 7:32
David Veeneman11-Mar-07 7:32 
AnswerRe: Passing member variables as private method arguments? Pin
Christian Graus11-Mar-07 4:55
protectorChristian Graus11-Mar-07 4:55 
AnswerRe: Passing member variables as private method arguments? Pin
Leslie Sanford11-Mar-07 16:52
Leslie Sanford11-Mar-07 16:52 
GeneralRe: Passing member variables as private method arguments? Pin
David Veeneman11-Mar-07 7:36
David Veeneman11-Mar-07 7:36 
GeneralRe: Passing member variables as private method arguments? Pin
David Veeneman12-Mar-07 4:14
David Veeneman12-Mar-07 4:14 
QuestionGenerate Panel Pin
shamsteady11-Mar-07 5:35
shamsteady11-Mar-07 5:35 
AnswerRe: Generate Panel Pin
Dave Kreskowiak11-Mar-07 6:48
mveDave Kreskowiak11-Mar-07 6:48 

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.