Click here to Skip to main content
15,919,121 members
Home / Discussions / C#
   

C#

 
GeneralRe: Thread creation using reflection for the target? Pin
LongRange.Shooter1-May-07 10:58
LongRange.Shooter1-May-07 10:58 
AnswerRe: Thread creation using reflection for the target? Pin
PIEBALDconsult1-May-07 18:26
mvePIEBALDconsult1-May-07 18:26 
QuestionC# Remote Window Hooks Pin
Bourtree1-May-07 9:40
Bourtree1-May-07 9:40 
AnswerRe: C# Remote Window Hooks Pin
LongRange.Shooter1-May-07 11:58
LongRange.Shooter1-May-07 11:58 
GeneralRe: C# Remote Window Hooks Pin
Bourtree3-May-07 6:51
Bourtree3-May-07 6:51 
GeneralRe: C# Remote Window Hooks Pin
LongRange.Shooter3-May-07 14:56
LongRange.Shooter3-May-07 14:56 
Questionarray of reference type in heap Pin
swjam1-May-07 8:59
swjam1-May-07 8:59 
AnswerRe: array of reference type in heap Pin
Ian Shlasko1-May-07 9:13
Ian Shlasko1-May-07 9:13 
They might be functionally identical, depending on how you use them, but they aren't the same.

Basically, you have:

triangles -> arrayObject: [ triangle1, triangle2, triangle3 ]

The first block of code would create:

copy -> copyOfArray: [ triangle1, triangle2, triangle3 ]
(copy is a pointer to a new array containing references to the same objects)

The second block would create:

copy -> arrayObject: [ triangle1, triangle2, triangle3 ]
(copy is a pointer to the original array)

Subtle difference, but in the first case, you could sort the copied array independently, and even add and remove elements without touching the original array. In the second case, sorting "copy" would sort "triangles".

(I'm assuming that Triangle is a class, not a struct. If it's a struct, then there's even more of a difference, because the first case would make a completely separate array of independent objects)

EDIT: Silly me, you said it was a class. Last paragraph is irrelevant
AnswerRe: array of reference type in heap Pin
kubben1-May-07 9:14
kubben1-May-07 9:14 
GeneralRe: array of reference type in heap Pin
Ian Shlasko1-May-07 9:19
Ian Shlasko1-May-07 9:19 
GeneralRe: array of reference type in heap Pin
kubben1-May-07 9:22
kubben1-May-07 9:22 
AnswerRe: array of reference type in heap Pin
LongRange.Shooter1-May-07 9:50
LongRange.Shooter1-May-07 9:50 
AnswerRe: array of reference type in heap Pin
Guffa1-May-07 9:52
Guffa1-May-07 9:52 
QuestionProblme passing Double Quotes (") to query Pin
Muhammad Nauman Yousuf1-May-07 6:54
Muhammad Nauman Yousuf1-May-07 6:54 
AnswerRe: Problme passing Double Quotes (") to query Pin
kubben1-May-07 7:15
kubben1-May-07 7:15 
GeneralRe: Problme passing Double Quotes (") to query Pin
Muhammad Nauman Yousuf1-May-07 7:53
Muhammad Nauman Yousuf1-May-07 7:53 
GeneralRe: Problme passing Double Quotes (") to query Pin
kubben1-May-07 7:59
kubben1-May-07 7:59 
AnswerRe: Problme passing Double Quotes (") to query Pin
Ian Shlasko1-May-07 8:05
Ian Shlasko1-May-07 8:05 
GeneralRe: Problme passing Double Quotes (") to query Pin
kubben1-May-07 8:10
kubben1-May-07 8:10 
AnswerRe: Problme passing Double Quotes (") to query Pin
Ian Shlasko1-May-07 8:20
Ian Shlasko1-May-07 8:20 
GeneralRe: Problme passing Double Quotes (") to query Pin
kubben1-May-07 8:30
kubben1-May-07 8:30 
GeneralRe: Problme passing Double Quotes (") to query Pin
Ian Shlasko1-May-07 8:48
Ian Shlasko1-May-07 8:48 
GeneralRe: Problme passing Double Quotes (") to query Pin
kubben1-May-07 8:49
kubben1-May-07 8:49 
GeneralRe: Problme passing Double Quotes (") to query Pin
Muhammad Nauman Yousuf1-May-07 8:51
Muhammad Nauman Yousuf1-May-07 8:51 
QuestionCannot implicitly convert type 'System.Windows.Forms.ContextMenuStrip' Pin
Latheesan1-May-07 6:40
Latheesan1-May-07 6:40 

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.