public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
 {
     if (reader.Value == null)
     {
         return(null);
     }
     return(FName.FromString(Convert.ToString(reader.Value)));
 }
Beispiel #2
0
 /// <summary>
 /// Gets or sets the value associated with the specified key. This operation loops linearly, so it may not be suitable for high-performance environments.
 /// </summary>
 /// <param name="key">The key associated with the value to get or set.</param>
 public PropertyData this[string key]
 {
     get
     {
         return(this[FName.FromString(key)]);
     }
     set
     {
         this[FName.FromString(key)] = value;
     }
 }