I've a table like this :
ID Name Key Value
1 Mydata1 Mail myval1
1 Mydata1 Name myval2
1 Mydata1 Nick myval3
1 Yourdata key2 myval4
and a class like this :
[Serializable]
public class Mydata
{
public string Mail{get;set;}
public string Name{get;set;}
public string Nick{get;set;}
}
I extract from my Table data where Name = 'MyData1' in a list.
How To serialize this data in my class. Thanks!