I use AjaxPro to write do requests like:
[AjaxMethod]
public MyClass GetMyClass()
{
return new MyClass();
}
Where MyClass holds fields like:
public class MyClass
{
[AjaxNonSerializable]
public string DoNotSerialzeMe;
[AjaxProperty]
public string WantsToBeSerialized;
}
So far, so good. But I cannot find any equivalent to renaming fields by [DataMember(Name = "FooBar")]
. I use the same classes with REST requests and need to rebuild their DataContract in AjaxPro.