Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
GeneralRe: Avoid Duplicate Entry in Text File Pin
Christian Graus4-Feb-08 18:01
protectorChristian Graus4-Feb-08 18:01 
GeneralRe: Avoid Duplicate Entry in Text File Pin
Adeel Chaudhry4-Feb-08 18:09
Adeel Chaudhry4-Feb-08 18:09 
GeneralRe: Avoid Duplicate Entry in Text File Pin
Adeel Chaudhry4-Feb-08 18:06
Adeel Chaudhry4-Feb-08 18:06 
GeneralRe: Avoid Duplicate Entry in Text File Pin
D i x y4-Feb-08 19:43
D i x y4-Feb-08 19:43 
AnswerRe: Avoid Duplicate Entry in Text File Pin
Vikram A Punathambekar4-Feb-08 19:58
Vikram A Punathambekar4-Feb-08 19:58 
GeneralRe: Avoid Duplicate Entry in Text File Pin
Christian Graus4-Feb-08 19:59
protectorChristian Graus4-Feb-08 19:59 
Generalobject references Pin
amit_834-Feb-08 17:40
amit_834-Feb-08 17:40 
AnswerRe: object references Pin
Vikram A Punathambekar4-Feb-08 17:50
Vikram A Punathambekar4-Feb-08 17:50 
First, calling an object class1 or class2 is a bad idea.

Second, when you say obj1 = obj2; with reference types, you are not assigning one object to another, you are only assigning a reference to another.

amit_83 wrote:
if i do make
chages in class2 then it also affact to class2 object.


Yes.

amit_83 wrote:
but i dont want this.means if i make any changes in class2 then it should not affact to class1 object.


1. Don't assign the references.
2. If you absolutely must do something of the sort, consider implementing your Clone() method which creates a new object.

Cheers,
Vikram.

"I will put my new found knolage to good use" - Captain See Sharp.

"Every time Lotus Notes starts up, somewhere a puppy, a kitten, a lamb, and a baby seal are killed." - Gary Wheeler.

GeneralRe: object references Pin
CKnig4-Feb-08 20:07
CKnig4-Feb-08 20:07 
GeneralDynamic Control creation Pin
nilam24774-Feb-08 17:34
nilam24774-Feb-08 17:34 
GeneralRe: Dynamic Control creation Pin
Gopal.S5-Feb-08 1:18
Gopal.S5-Feb-08 1:18 
GeneralRe: Dynamic Control creation Pin
nilam24775-Feb-08 16:34
nilam24775-Feb-08 16:34 
QuestionHow to get value of one form to another??? [modified] Pin
Neo Andreson4-Feb-08 17:03
Neo Andreson4-Feb-08 17:03 
AnswerRe: How to get value of one from to another??? Pin
Christian Graus4-Feb-08 17:12
protectorChristian Graus4-Feb-08 17:12 
GeneralRe: How to get value of one from to another??? Pin
Neo Andreson4-Feb-08 18:31
Neo Andreson4-Feb-08 18:31 
GeneralRe: How to get value of one from to another??? Pin
Neo Andreson5-Feb-08 19:35
Neo Andreson5-Feb-08 19:35 
GeneralIcons.... Pin
Jacob Dixon4-Feb-08 15:36
Jacob Dixon4-Feb-08 15:36 
GeneralRe: Icons.... Pin
MarkB7774-Feb-08 16:50
MarkB7774-Feb-08 16:50 
GeneralGetting midnight out of a calendar control Pin
kozu4-Feb-08 15:04
kozu4-Feb-08 15:04 
GeneralRe: Getting midnight out of a calendar control Pin
Christian Graus4-Feb-08 17:12
protectorChristian Graus4-Feb-08 17:12 
GeneralRe: Getting midnight out of a calendar control Pin
Vikram A Punathambekar4-Feb-08 17:52
Vikram A Punathambekar4-Feb-08 17:52 
AnswerRe: Getting midnight out of a calendar control Pin
Vikram A Punathambekar4-Feb-08 17:44
Vikram A Punathambekar4-Feb-08 17:44 
GeneralRe: Getting midnight out of a calendar control Pin
J4amieC4-Feb-08 22:41
J4amieC4-Feb-08 22:41 
GeneralRe: Getting midnight out of a calendar control Pin
Vikram A Punathambekar5-Feb-08 0:30
Vikram A Punathambekar5-Feb-08 0:30 
GeneralI need help with a program Pin
Alex5014-Feb-08 11:54
Alex5014-Feb-08 11:54 

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.