private static EmptyType ConvertFrom(object o) { var type = new EmptyType(); type.SetValue(o); return(type); }
private static T ConvertTo <T>(EmptyType type) { if (type == null) { return(default(T)); } return(type.GetValue <T>()); }