Deserialize custom attribute into class



suppose i have class C#



class AB
{
public int A;
public int B;
}

class Tag
{
public AB ab;
}


and i have XML string



<tag ab="12;20" />


Question: how to deserialize from "12;20" into AB class? I google a lot but did not found anything. Where to dig? Thanks!


No comments:

Post a Comment