I have an object X
like this:
X x1 = new X();
Here x1
has 3 properties say:
x1.a;
x1.b;
x1.c;
Here a
, b
and c
are objects of other class.
Irrespective of these all I want to set the whole object x1
to null
or set each property:
x1.a = null;
x1.b = null;
Is there any solution to accomplish this?