ClassA and ClassB will point to the same object - the ClassA variable will have all the same values, but that's simply because it is referencing the same exact object as the ClassB variable.
If you want to clone ClassB's values to ClassA, then you have to look into deep-copy cloning.
Convert between VB, C#, C++, & Java (http://ift.tt/MqfcUL)
Instant C# - VB to C# Converter
Instant VB - C# to VB Converter
No comments:
Post a Comment