Click here to Skip to main content
16,005,038 members
Home / Discussions / C#
   

C#

 
GeneralRe: Class Objects and Equals Operator Pin
budidharma1-Nov-05 7:23
budidharma1-Nov-05 7:23 
GeneralRe: Class Objects and Equals Operator Pin
[Marc]1-Nov-05 9:28
[Marc]1-Nov-05 9:28 
GeneralRe: Class Objects and Equals Operator Pin
budidharma1-Nov-05 14:36
budidharma1-Nov-05 14:36 
GeneralRe: Class Objects and Equals Operator Pin
[Marc]1-Nov-05 17:33
[Marc]1-Nov-05 17:33 
GeneralRe: Class Objects and Equals Operator Pin
budidharma2-Nov-05 2:00
budidharma2-Nov-05 2:00 
GeneralRe: Class Objects and Equals Operator Pin
budidharma2-Nov-05 2:04
budidharma2-Nov-05 2:04 
GeneralRe: Class Objects and Equals Operator Pin
[Marc]3-Nov-05 0:56
[Marc]3-Nov-05 0:56 
GeneralRe: Class Objects and Equals Operator Pin
Febret1-Nov-05 6:39
Febret1-Nov-05 6:39 
As Marc said, you should implement the ICloneable interface.

Notice that if you have to do a simple shallow copy as in the case you exposed, you don't have to write your own copy code, but you can use the Object.MemberwiseClone method instead. (You'll have to implement ICloneable anyway though, because MemberwiseClone is protected)

Cheers
AnswerRe: Class Objects and Equals Operator Pin
S. Senthil Kumar1-Nov-05 19:15
S. Senthil Kumar1-Nov-05 19:15 
GeneralRe: Class Objects and Equals Operator Pin
[Marc]3-Nov-05 1:24
[Marc]3-Nov-05 1:24 
QuestionGetting Enum Type from Value Pin
budidharma1-Nov-05 3:10
budidharma1-Nov-05 3:10 
AnswerRe: Getting Enum Type from Value Pin
Libor Tinka1-Nov-05 3:20
Libor Tinka1-Nov-05 3:20 
AnswerRe: Getting Enum Type from Value Pin
S. Senthil Kumar1-Nov-05 3:22
S. Senthil Kumar1-Nov-05 3:22 
GeneralRe: Getting Enum Type from Value Pin
budidharma1-Nov-05 4:30
budidharma1-Nov-05 4:30 
Questionhow to display brokenrule in a messagebox with yes no button. Yes means continue with brokenRule Pin
lokeshkumble1-Nov-05 2:52
lokeshkumble1-Nov-05 2:52 
AnswerRe: how to display brokenrule in a messagebox with yes no button. Yes means continue with brokenRule Pin
J4amieC1-Nov-05 4:11
J4amieC1-Nov-05 4:11 
GeneralRe: how to display brokenrule in a messagebox with yes no button. Yes means continue with brokenRule Pin
lokeshkumble1-Nov-05 21:14
lokeshkumble1-Nov-05 21:14 
QuestionSystem.Data.Odbc Pin
zaboboa1-Nov-05 2:41
zaboboa1-Nov-05 2:41 
AnswerRe: System.Data.Odbc Pin
S. Senthil Kumar1-Nov-05 3:28
S. Senthil Kumar1-Nov-05 3:28 
GeneralRe: System.Data.Odbc Pin
zaboboa1-Nov-05 3:40
zaboboa1-Nov-05 3:40 
Questiondisplay program file in window form Pin
hongweng1-Nov-05 2:16
hongweng1-Nov-05 2:16 
AnswerRe: display program file in window form Pin
Judah Gabriel Himango1-Nov-05 4:58
sponsorJudah Gabriel Himango1-Nov-05 4:58 
GeneralRe: display program file in window form Pin
hongweng1-Nov-05 17:57
hongweng1-Nov-05 17:57 
Questiondisplay program file in window form Pin
hongweng1-Nov-05 2:16
hongweng1-Nov-05 2:16 
QuestionCould the asp.net run a thread loop on the server? Pin
rushing1-Nov-05 1:01
rushing1-Nov-05 1:01 

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.