Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JsonBackedObjectBase" /> class.
 /// </summary>
 /// <param name="json">The json.</param>
 public JsonLink(JToken json) : base(json)
 {
     r_Attributes = new Lazy <JsonLinkAttributes>(() =>
     {
         return(JsonLinkAttributes.FromToken(JsonValue["attributes"]));
     });
 }
Exemplo n.º 2
0
        /// <summary>
        /// Froms the token.
        /// </summary>
        /// <param name="content">The content.</param>
        /// <returns>JsonLink.</returns>
        public static JsonLinkAttributes FromToken(JToken content)
        {
            var instance = new JsonLinkAttributes(content);

            return(instance);
        }