1

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.

famousgarkin
  • 13,687
  • 5
  • 58
  • 74
Sebastian
  • 5,721
  • 3
  • 43
  • 69
  • 1
    Are you sure AjaxPro does support data contracts API? I'm unable to find any indication of it anywhere, including the project source code. – famousgarkin May 15 '14 at 17:30
  • Thanks, you're right. Meanwhile I found some equivalents to DataContract attributes that work in AjaxPro but I still need some help. I updated the question. – Sebastian May 15 '14 at 21:49

0 Answers0