I know that this is one of the basic things but I discover it today. “How .Net handle a Class object if they are assign to other object of same class”
Well I have written a class in VB.Net and unfortunely Vb.Net doesn’t support Operator Overloading. Therefore my Class is unable to load the = operator. Now, When I by mistake does this
Dim x as new NewClass
Dim y as new NewClass
It actually make x as the reference of the y :o)
I keep finding that where is the bug in my software.
So Moral of the Article is that :-
The above statement will make the reference of on the RHS object to the LHS if the assignment operator is not explicity overloaded for that Class.
bye for now