Click here to Skip to main content
16,017,852 members
Home / Discussions / C#
   

C#

 
AnswerRe: need program Pin
pmarfleet23-Oct-07 10:22
pmarfleet23-Oct-07 10:22 
AnswerRe: need program Pin
il_masacratore23-Oct-07 11:09
il_masacratore23-Oct-07 11:09 
AnswerRe: need program Pin
Spacix One23-Oct-07 11:16
Spacix One23-Oct-07 11:16 
AnswerRe: need program Pin
Guffa23-Oct-07 11:45
Guffa23-Oct-07 11:45 
AnswerRe: need program Pin
Ravi Bhavnani23-Oct-07 17:51
professionalRavi Bhavnani23-Oct-07 17:51 
QuestionProblem with SortedList and call by value Pin
sf10123-Oct-07 9:02
sf10123-Oct-07 9:02 
AnswerRe: Problem with SortedList and call by value Pin
Dave Kreskowiak23-Oct-07 9:38
mveDave Kreskowiak23-Oct-07 9:38 
AnswerRe: Problem with SortedList and call by value Pin
pmarfleet23-Oct-07 9:44
pmarfleet23-Oct-07 9:44 
From the MSDN documentation for the SortedList.Clone() method:

A shallow copy of a collection copies only the elements of the collection, whether they are reference types or value types, but does not copy the objects that the references refer to. The references in the new collection point to the same objects that the references in the original collection point to.

In contrast, a deep copy of a collection copies the elements and everything directly or indirectly referenced by the elements.

You need to pass a deep copy of each SortedList instance to your set operation methods if you don't want the contents of the original objects to be affected.

Paul Marfleet

AnswerRe: Problem with SortedList and call by value Pin
Luc Pattyn23-Oct-07 11:56
sitebuilderLuc Pattyn23-Oct-07 11:56 
Questionerror Pin
memaia23-Oct-07 8:52
memaia23-Oct-07 8:52 
AnswerRe: error Pin
pmarfleet23-Oct-07 9:33
pmarfleet23-Oct-07 9:33 
AnswerRe: error [modified] Pin
Dave Kreskowiak23-Oct-07 9:36
mveDave Kreskowiak23-Oct-07 9:36 
GeneralRe: error Pin
Anthony Mushrow23-Oct-07 10:51
professionalAnthony Mushrow23-Oct-07 10:51 
GeneralRe: error Pin
Luc Pattyn23-Oct-07 11:59
sitebuilderLuc Pattyn23-Oct-07 11:59 
GeneralRe: error Pin
Dave Kreskowiak23-Oct-07 13:54
mveDave Kreskowiak23-Oct-07 13:54 
QuestionHow add data into DataGrid dynamically Pin
A.Asif23-Oct-07 8:25
A.Asif23-Oct-07 8:25 
AnswerRe: How add data into DataGrid dynamically Pin
pmarfleet23-Oct-07 9:30
pmarfleet23-Oct-07 9:30 
GeneralRe: How add data into DataGrid dynamically Pin
A.Asif23-Oct-07 9:46
A.Asif23-Oct-07 9:46 
GeneralRe: How add data into DataGrid dynamically Pin
pmarfleet23-Oct-07 9:55
pmarfleet23-Oct-07 9:55 
AnswerRe: How add data into DataGrid dynamically Pin
kenprog23-Oct-07 14:46
kenprog23-Oct-07 14:46 
Questioncan't play song ! Pin
whale8423-Oct-07 8:23
whale8423-Oct-07 8:23 
AnswerRe: can't play song ! Pin
pmarfleet23-Oct-07 9:26
pmarfleet23-Oct-07 9:26 
JokeRe: can't play song ! Pin
Luc Pattyn23-Oct-07 12:02
sitebuilderLuc Pattyn23-Oct-07 12:02 
GeneralRe: can't play song ! Pin
pmarfleet23-Oct-07 12:35
pmarfleet23-Oct-07 12:35 
GeneralRe: can't play song ! Pin
Luc Pattyn23-Oct-07 14:20
sitebuilderLuc Pattyn23-Oct-07 14:20 

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.