AjaxPro equivalent to DataContract renaming such as [DataMember(Name = "FooBar")]

64 views Asked by At

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.

0

There are 0 answers