Referencing difference between Struct and Class...

  • Thread starter Thread starter Dan Bass
  • Start date Start date
D

Dan Bass

Is this right or not as a difference between C# struct's and classes?

// if successful myStruct will contain a copy of the structure which is
myObj
object myStruct = (StructEg) myObj;

and

// if successful myClass will contain different reference to the same
ClassEg instance
object myClass = (ClassEg) myObj;
 
Back
Top