Click here to Skip to main content
15,896,552 members
Home / Discussions / C#
   

C#

 
GeneralRe: Resource files and user types Pin
Chris Rickard26-Jun-02 4:41
Chris Rickard26-Jun-02 4:41 
GeneralThanks! Pin
3-Jul-02 7:32
suss3-Jul-02 7:32 
GeneralUsing Interfaces with .NET Remoting Pin
tmagoo24-Jun-02 19:34
tmagoo24-Jun-02 19:34 
GeneralRe: Figured it out Using Interfaces with .NET Remoting Pin
tmagoo25-Jun-02 18:38
tmagoo25-Jun-02 18:38 
GeneralRan into a problem Pin
Brian Olej24-Jun-02 12:11
Brian Olej24-Jun-02 12:11 
GeneralRe: Ran into a problem Pin
Rama Krishna Vavilala24-Jun-02 12:29
Rama Krishna Vavilala24-Jun-02 12:29 
GeneralRe: Ran into a problem Pin
Brian Olej24-Jun-02 12:33
Brian Olej24-Jun-02 12:33 
GeneralCopying object data Pin
Zombies with Coffee, LLC24-Jun-02 9:49
professionalZombies with Coffee, LLC24-Jun-02 9:49 
I'm creating an undo feature here and having a slight amount of problem with copying from one point of memory to another.

I've got a stack that will stores a 'before' and 'after' copy of the object that is currently residing in a ArrayList.

pUndoFeature.OldFeature = (BaseFeature) pBaseFeature.Clone( );
pUndoFeature.NewFeature = pBaseFeature;

Now when I click 'undo', I need to copy the contents of the object from the OldFeature to the NewFeature. Since many classes derive from 'BaseFeature', it is undesirable to do a member copy operation for each class.

Is there a C# way of performing a shallow copy of the object from one pointer to another without Cloning into a brand new object?

Thanks as always!

GeneralRe: Copying object data Pin
Chris Rickard25-Jun-02 14:19
Chris Rickard25-Jun-02 14:19 
GeneralRe: Copying object data Pin
Zombies with Coffee, LLC25-Jun-02 16:50
professionalZombies with Coffee, LLC25-Jun-02 16:50 
GeneralRe: Copying object data Pin
Chris Rickard26-Jun-02 4:11
Chris Rickard26-Jun-02 4:11 
GeneralRe: Copying object data Pin
Zombies with Coffee, LLC26-Jun-02 4:19
professionalZombies with Coffee, LLC26-Jun-02 4:19 
GeneralPassing a ref of a form Pin
24-Jun-02 9:29
suss24-Jun-02 9:29 
GeneralRe: Passing a ref of a form Pin
Chris Rickard24-Jun-02 9:37
Chris Rickard24-Jun-02 9:37 
GeneralWhat about now?? Pin
24-Jun-02 10:53
suss24-Jun-02 10:53 
GeneralRe: What about now?? Pin
Chris Rickard24-Jun-02 12:41
Chris Rickard24-Jun-02 12:41 
GeneralHi again >:) Pin
24-Jun-02 23:58
suss24-Jun-02 23:58 
GeneralI've got it Pin
25-Jun-02 0:22
suss25-Jun-02 0:22 
GeneralDockStyle and MdiChild windows Pin
23-Jun-02 23:47
suss23-Jun-02 23:47 
GeneralRe: DockStyle and MdiChild windows Pin
Rüpel23-Jun-02 23:53
Rüpel23-Jun-02 23:53 
GeneralFirst time to use oledbconnection, but I failed. :( Pin
Feng Qin23-Jun-02 21:40
Feng Qin23-Jun-02 21:40 
GeneralRe: First time to use oledbconnection, but I failed. :( Pin
Richard Deeming23-Jun-02 23:56
mveRichard Deeming23-Jun-02 23:56 
GeneralRe: First time to use oledbconnection, but I failed. :( Pin
Feng Qin24-Jun-02 1:04
Feng Qin24-Jun-02 1:04 
GeneralRe: First time to use oledbconnection, but I failed. :( Pin
Richard Deeming24-Jun-02 5:27
mveRichard Deeming24-Jun-02 5:27 
GeneralRe: First time to use oledbconnection, but I failed. :( Pin
leppie24-Jun-02 0:30
leppie24-Jun-02 0:30 

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.