public static GenericVM ToVM(this Type type, object data) { TableMeta meta = _metaCache.GetOrAdd(type, AddMeta); var result = new GenericVM(meta); result.Data = data.ToDynamic(); return(result); }
public static GenericVM ToVM(this object value) { var _type = value.GetType(); TableMeta meta = _metaCache.GetOrAdd(_type, AddMeta); var result = new GenericVM(meta); result.Data = value.ToDynamic(); return(result); }