I don't know if it possible, but I try...:
I pass from javascript to c# any object. For exapmle:
{
name:'ser',
age:8
}
At server-side, I have custom class look like:
public class generaly
{
public string FieldName { get; set; }
public string FieldValue { get; set; }
public bool? isKey { get; set; }
}
I need to convert my object, so after convert I want to have List of generaly objects:
[
{FieldName:"name", FieldValue:"ser", isKey:null},
{FieldName:"age", FieldValue:"8", isKey:null}
];
I tried using dynamic type, expando object, dictionary... but it didn't help me becouse I need the finall result to be list of my class (generaly).
I there any solution to this situation?