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