Monday, 19 August 2013

Service Stack Client for 3rd party needs a parameter called Public

Service Stack Client for 3rd party needs a parameter called Public

I have a requirement to call a 3rd party rest api using service stack and
this is working fine.
But one of the rest api's requires a property called "public"
Is there an attribute I can specify to give it another name in the class
but use the public name when it calls the service?
so I have this definition in the class
public string public { get; set; }
The error I get is
Member modifier 'public' must precede the member type and name
Thanks

No comments:

Post a Comment