Click here to Skip to main content
15,902,299 members
Home / Discussions / C#
   

C#

 
GeneralRe: Datagrid row colouring Pin
painlessprod26-Sep-05 17:55
painlessprod26-Sep-05 17:55 
Question3d programming using C#.net and Axiom Engine Pin
Member 225908026-Sep-05 12:33
Member 225908026-Sep-05 12:33 
Questionvids:tscc video decompressor not found Pin
codeproj guy26-Sep-05 11:03
codeproj guy26-Sep-05 11:03 
AnswerRe: vids:tscc video decompressor not found Pin
codeproj guy26-Sep-05 11:25
codeproj guy26-Sep-05 11:25 
QuestionActive Directory - Determine if user is in group Pin
new to .net26-Sep-05 10:43
new to .net26-Sep-05 10:43 
AnswerRe: Active Directory - Determine if user is in group Pin
Heath Stewart26-Sep-05 11:38
protectorHeath Stewart26-Sep-05 11:38 
QuestionWierd Variable Sharing Bug Pin
YawgmothIII26-Sep-05 10:29
YawgmothIII26-Sep-05 10:29 
AnswerRe: Wierd Variable Sharing Bug Pin
Heath Stewart26-Sep-05 11:30
protectorHeath Stewart26-Sep-05 11:30 
That's not a bug - that's the way it's supposed to work. Reference types are not copied to different locations, they're referenced. So you're not assigning a copy of tempUnit, but your adding a new reference to it in this.Objects[openSlot]. Value types are copied (numeric primitives, enums, and structs are value types) but then UnitTypes[newUnit].name = "something else" wouldn't work as you'd expect it because the value type is copied before the name field or property is assigned. You would instead have to copy the struct back out, change it, then re-assign it.

See http://msdn.microsoft.com/msdnmag/issues/1200/dotnet/default.aspx[^] for a discussion of reference types vs. value types.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Customer Product-lifecycle Experience
Microsoft

[My Articles] [My Blog]
QuestionHaving trouble closing crystal reports connection Pin
kornstyle26-Sep-05 10:12
kornstyle26-Sep-05 10:12 
AnswerRe: Having trouble closing crystal reports connection Pin
Heath Stewart26-Sep-05 11:21
protectorHeath Stewart26-Sep-05 11:21 
GeneralRe: Having trouble closing crystal reports connection Pin
kornstyle27-Sep-05 2:37
kornstyle27-Sep-05 2:37 
GeneralRe: Having trouble closing crystal reports connection Pin
Heath Stewart27-Sep-05 6:07
protectorHeath Stewart27-Sep-05 6:07 
QuestionSearching Database for Password in C# Pin
jeff1926-Sep-05 9:20
jeff1926-Sep-05 9:20 
AnswerRe: Searching Database for Password in C# Pin
Dave Kreskowiak26-Sep-05 9:23
mveDave Kreskowiak26-Sep-05 9:23 
AnswerRe: Searching Database for Password in C# Pin
Jon Sagara26-Sep-05 10:33
Jon Sagara26-Sep-05 10:33 
QuestionHow to show "please wait" during a long time process? Pin
Julianne_juju26-Sep-05 9:15
Julianne_juju26-Sep-05 9:15 
AnswerRe: How to show "please wait" during a long time process? Pin
Dave Kreskowiak26-Sep-05 9:21
mveDave Kreskowiak26-Sep-05 9:21 
GeneralRe: How to show "please wait" during a long time process? Pin
Julianne_juju26-Sep-05 9:46
Julianne_juju26-Sep-05 9:46 
AnswerRe: How to show "please wait" during a long time process? Pin
26-Sep-05 11:58
suss26-Sep-05 11:58 
GeneralRe: How to show Pin
Heinz_26-Sep-05 12:03
Heinz_26-Sep-05 12:03 
GeneralRe: How to show Pin
Dave Kreskowiak26-Sep-05 12:11
mveDave Kreskowiak26-Sep-05 12:11 
GeneralRe: How to show Pin
26-Sep-05 12:22
suss26-Sep-05 12:22 
QuestionC# newbee Pin
Ann6626-Sep-05 8:15
sussAnn6626-Sep-05 8:15 
AnswerRe: C# newbee Pin
Mohamad Al Husseiny26-Sep-05 8:25
Mohamad Al Husseiny26-Sep-05 8:25 
GeneralRe: C# newbee Pin
Ann6626-Sep-05 8:31
sussAnn6626-Sep-05 8:31 

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.