예제 #1
0
 public static void RemoveExtData(this IExtData extData, string key)
 {
     extData.GetExtData().Remove(key);
 }
예제 #2
0
 public static void SetExtData(this IExtData extData, string key, object value)
 {
     extData.GetExtData()[key] = JToken.FromObject(value);
 }
예제 #3
0
 public static object GetExtData(this IExtData extData, string key, object ifNotFound = null)
 {
     return(extData.GetExtData().ContainsKey(key)
             ? extData.GetExtData()[key]
             : ifNotFound);
 }
예제 #4
0
 public static bool ContainsExtData(this IExtData extData, string key)
 {
     return(extData.GetExtData().ContainsKey(key));
 }
예제 #5
0
 public static IEnumerable <string> GetExtDataKeys(this IExtData extData)
 {
     return(extData.GetExtData().Keys);
 }
예제 #6
0
 public static int GetExtDataCount(this IExtData extData)
 {
     return(extData.GetExtData().Count);
 }