Example #1
0
 public static T GetValue <T>(this MapTable <string, object> d, string key, T defaultValue = default)
 {
     if (d != null && d.TryGetValue(key, out object result))
     {
         return(result.CastAs <T>());
     }
     return(defaultValue);
 }