G
Guest
Hi,
I'm new serialization concepts....I need some hwlp..
I've a class defined as follows
class CustomSerialization1
{
private string s;
public string Test
{
get { return s; }
set { s = value; }
}
private int i;
public int Test1
{
get { return i; }
set { i = value; }
}
CustomSerialization1 obj = new CustomSerialization1();
obj.Test = "vijaya,wajid,vani";
object.Test1 = 3;
}
if want the the output to be sth below after applying serializatiion
<Task>
<Test>
<TestInnner>Vijaya</TestInnner>
<TestInnner>wajid</TestInnner>
<TestInnner>vani</TestInnner>
</Test>
<Test1>3</Test3>
</Task>
Basically I want to control teh way inwhich my Test property will be
displayed during serialization and deserialization....
please help me out..just let me know if this is possible by any means...
either thru XmlSerialization or Custom Serialziation...
I'm new serialization concepts....I need some hwlp..
I've a class defined as follows
class CustomSerialization1
{
private string s;
public string Test
{
get { return s; }
set { s = value; }
}
private int i;
public int Test1
{
get { return i; }
set { i = value; }
}
CustomSerialization1 obj = new CustomSerialization1();
obj.Test = "vijaya,wajid,vani";
object.Test1 = 3;
}
if want the the output to be sth below after applying serializatiion
<Task>
<Test>
<TestInnner>Vijaya</TestInnner>
<TestInnner>wajid</TestInnner>
<TestInnner>vani</TestInnner>
</Test>
<Test1>3</Test3>
</Task>
Basically I want to control teh way inwhich my Test property will be
displayed during serialization and deserialization....
please help me out..just let me know if this is possible by any means...
either thru XmlSerialization or Custom Serialziation...