Click here to Skip to main content
15,925,255 members
Home / Discussions / C#
   

C#

 
GeneralRe: Convert hex to datetime Pin
Joshua Quick15-Nov-05 13:36
Joshua Quick15-Nov-05 13:36 
Questiona question about image list (not imagelist class) Pin
mack scynox14-Nov-05 9:55
mack scynox14-Nov-05 9:55 
AnswerRe: a question about image list (not imagelist class) Pin
Christian Graus14-Nov-05 12:42
protectorChristian Graus14-Nov-05 12:42 
Questionquestion about arrays Pin
savage_14-Nov-05 9:01
savage_14-Nov-05 9:01 
AnswerRe: question about arrays Pin
Christian Graus14-Nov-05 12:44
protectorChristian Graus14-Nov-05 12:44 
GeneralRe: question about arrays Pin
savage_14-Nov-05 16:18
savage_14-Nov-05 16:18 
GeneralRe: question about arrays Pin
Christian Graus14-Nov-05 16:26
protectorChristian Graus14-Nov-05 16:26 
GeneralRe: question about arrays Pin
S. Senthil Kumar14-Nov-05 18:41
S. Senthil Kumar14-Nov-05 18:41 
Christian Graus wrote:
yes, that is true, but you still need to specify ref if you want to pass by reference.


I think you misread the question. The OP asked about copies of the *array* being created when accessing the SomeArray property, he doesn't want to pass the result of obj.SomeArray[i] by reference or by value. Arrays are reference types, so they are *not* copied. In the OP's code, only the reference to the array is copied when he does obj.SomeArray.


Christian Graus wrote:
In .NET, reference types are reference counted. A new object is created when your old object is modified, unless it's passed by ref


Huh? I thought reference counting is solely for the purpose of garbage collection. It definitely is *not* used to implement copy on write semantics.

Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
GeneralRe: question about arrays Pin
Christian Graus15-Nov-05 10:40
protectorChristian Graus15-Nov-05 10:40 
AnswerRe: question about arrays Pin
S. Senthil Kumar14-Nov-05 18:32
S. Senthil Kumar14-Nov-05 18:32 
GeneralRe: question about arrays Pin
savage_14-Nov-05 20:06
savage_14-Nov-05 20:06 
QuestionDrag&Drop selected Text, anyone knows something? Pin
_Kalix14-Nov-05 8:01
_Kalix14-Nov-05 8:01 
AnswerRe: Drag&Drop selected Text, anyone knows something? Pin
n10sive14-Nov-05 8:15
n10sive14-Nov-05 8:15 
GeneralText becomes unselected before the MouseDown event Pin
_Kalix14-Nov-05 20:04
_Kalix14-Nov-05 20:04 
QuestionTabControl problem. Pin
chettu14-Nov-05 8:00
chettu14-Nov-05 8:00 
QuestionCopy an Open File Pin
Osman Ishaque14-Nov-05 8:00
Osman Ishaque14-Nov-05 8:00 
AnswerRe: Copy an Open File Pin
dabuskol14-Nov-05 20:03
dabuskol14-Nov-05 20:03 
GeneralRe: Copy an Open File Pin
Osman Ishaque14-Nov-05 22:18
Osman Ishaque14-Nov-05 22:18 
QuestionUML Class Digram and C# Source Code in MS-Visio Pin
Naif_Prof14-Nov-05 5:56
Naif_Prof14-Nov-05 5:56 
QuestionVisual Studio Class Designer? Pin
Naif_Prof14-Nov-05 5:28
Naif_Prof14-Nov-05 5:28 
QuestionCancel Click In Inherited User Control Pin
rich_wenger14-Nov-05 4:55
rich_wenger14-Nov-05 4:55 
AnswerRe: Cancel Click In Inherited User Control Pin
Curtis Schlak.14-Nov-05 5:26
Curtis Schlak.14-Nov-05 5:26 
GeneralRe: Cancel Click In Inherited User Control Pin
rich_wenger14-Nov-05 5:42
rich_wenger14-Nov-05 5:42 
GeneralRe: Cancel Click In Inherited User Control Pin
rich_wenger14-Nov-05 8:52
rich_wenger14-Nov-05 8:52 
GeneralRe: Cancel Click In Inherited User Control Pin
Curtis Schlak.14-Nov-05 9:04
Curtis Schlak.14-Nov-05 9:04 

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.