Click here to Skip to main content
15,889,992 members
Home / Discussions / C#
   

C#

 
GeneralRe: Overloading default member in a C# class Pin
BillWoodruff8-May-16 18:41
professionalBillWoodruff8-May-16 18:41 
QuestionICloneable class with strings Pin
WorkOnlineClick2Wealth7-May-16 18:44
WorkOnlineClick2Wealth7-May-16 18:44 
AnswerRe: ICloneable class with strings Pin
OriginalGriff7-May-16 21:09
mveOriginalGriff7-May-16 21:09 
GeneralRe: ICloneable class with strings Pin
WorkOnlineClick2Wealth8-May-16 5:00
WorkOnlineClick2Wealth8-May-16 5:00 
GeneralRe: ICloneable class with strings Pin
OriginalGriff8-May-16 5:10
mveOriginalGriff8-May-16 5:10 
GeneralRe: ICloneable class with strings Pin
WorkOnlineClick2Wealth8-May-16 6:07
WorkOnlineClick2Wealth8-May-16 6:07 
GeneralRe: ICloneable class with strings Pin
Richard Deeming9-May-16 1:50
mveRichard Deeming9-May-16 1:50 
AnswerRe: ICloneable class with strings Pin
DaveAuld8-May-16 5:37
professionalDaveAuld8-May-16 5:37 
Because, if you look at the specification of String.Clone, it states;
"The return value is not an independent copy of this instance; it is simply another view of the same data. Use the Copy or CopyTo method to create a separate String object with the same value as this instance."

Read https://msdn.microsoft.com/en-us/library/system.string.clone(v=vs.110).aspx

If you also read the specification for; ICloneable Interface (System)[^] it states that ". It does not specify whether the cloning operation performs a deep copy, a shallow copy, or something in between. Nor does it require all property values of the original instance to be copied to the new instance."

Hope that helps..........
Dave
Find Me On:Web|Facebook|Twitter|LinkedIn
Folding Stats: Team CodeProject

GeneralRe: ICloneable class with strings Pin
WorkOnlineClick2Wealth8-May-16 5:46
WorkOnlineClick2Wealth8-May-16 5:46 
QuestionC# chart library with interactive elements drawing Pin
WallaceCheshire7-May-16 3:41
WallaceCheshire7-May-16 3:41 
AnswerRe: C# chart library with interactive elements drawing Pin
Ravi Bhavnani7-May-16 18:30
professionalRavi Bhavnani7-May-16 18:30 
AnswerRe: C# chart library with interactive elements drawing Pin
Kenneth Haugland7-May-16 18:31
mvaKenneth Haugland7-May-16 18:31 
QuestionWinForms issues: (partial rant, partial sharing, totally a request for opinions, comments) Pin
BillWoodruff7-May-16 2:21
professionalBillWoodruff7-May-16 2:21 
AnswerRe: WinForms issues: (partial rant, partial sharing, totally a request for opinions, comments) Pin
CHill607-May-16 4:45
mveCHill607-May-16 4:45 
QuestionWhat does Bitmap.LockBits() do? Pin
Bernhard Hiller5-May-16 21:04
Bernhard Hiller5-May-16 21:04 
AnswerRe: What does Bitmap.LockBits() do? PinPopular
OriginalGriff5-May-16 21:54
mveOriginalGriff5-May-16 21:54 
GeneralRe: What does Bitmap.LockBits() do? Pin
Bernhard Hiller5-May-16 23:22
Bernhard Hiller5-May-16 23:22 
GeneralRe: What does Bitmap.LockBits() do? Pin
OriginalGriff5-May-16 23:45
mveOriginalGriff5-May-16 23:45 
GeneralRe: What does Bitmap.LockBits() do? Pin
Rob Philpott6-May-16 5:49
Rob Philpott6-May-16 5:49 
GeneralRe: What does Bitmap.LockBits() do? Pin
OriginalGriff6-May-16 6:12
mveOriginalGriff6-May-16 6:12 
Questionenvt Pin
Member 125041034-May-16 23:52
Member 125041034-May-16 23:52 
AnswerRe: envt Pin
Eddy Vluggen5-May-16 0:06
professionalEddy Vluggen5-May-16 0:06 
AnswerRe: envt Pin
Pete O'Hanlon5-May-16 0:08
mvePete O'Hanlon5-May-16 0:08 
AnswerRe: envt Pin
Richard MacCutchan5-May-16 0:28
mveRichard MacCutchan5-May-16 0:28 
AnswerRe: envt Pin
Sascha Lefèvre5-May-16 0:44
professionalSascha Lefèvre5-May-16 0:44 

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.