コード例 #1
0
 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)));
 }
コード例 #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;
     }
 }