Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Written for .NET 3.5.
- [DataContract]
- public class JSONObject
- {
- /// <summary>
- /// This is how you can escape a keyword as an identifier.
- /// </summary>
- [DataMember]
- public string @public
- {
- get; set;
- }
- /// <summary>
- /// If you don't want to escape it and declare it instead.
- /// </summary>
- [DataMember(Name = "public")]
- public string Public
- {
- get; set;
- }
- }
Add Comment
Please, Sign In to add comment