示例#1
0
 public static Dictionary <string, string> ToDictionary(this JsonObject jsonObject)
 {
     return(jsonObject == null
                         ? new Dictionary <string, string>()
                         : new Dictionary <string, string>(jsonObject));
 }
示例#2
0
 public static T ConvertTo <T>(this JsonObject jsonObject, Func <JsonObject, T> converFn)
 {
     return(jsonObject == null
                         ? default(T)
                         : converFn(jsonObject));
 }