Guest User

Untitled

a guest
Jul 15th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. // Written for .NET 3.5.
  2. [DataContract]
  3. public class JSONObject
  4. {
  5. /// <summary>
  6. /// This is how you can escape a keyword as an identifier.
  7. /// </summary>
  8. [DataMember]
  9. public string @public
  10. {
  11. get; set;
  12. }
  13.  
  14. /// <summary>
  15. /// If you don't want to escape it and declare it instead.
  16. /// </summary>
  17. [DataMember(Name = "public")]
  18. public string Public
  19. {
  20. get; set;
  21. }
  22. }
Add Comment
Please, Sign In to add comment