Hi everyone
I just want to ask why this code below adds the
variables i,v to the serialization too ? I have made them as NonSerialized
I'm using XmlSerializer and TextWriter classes to create xml file
with an instance of class x
any suggestions
than
// Code ..........................
[Serializable()
public class
public x(
/
// TODO: Add constructor logic her
/
[NonSerialized()]
public int v=2000
[NonSerialized()]
private int i=1000
private int i1;
public int i
get
return i
set
i=value
public int ii
get
return i1
set
i1=value
}