Esempio n. 1
0
        private static InetAddressType ConvertFrom(object o)
        {
            var type = new InetAddressType();

            type.SetValue(o);
            return(type);
        }
Esempio n. 2
0
        private static T ConvertTo <T>(InetAddressType type)
        {
            if (type == null)
            {
                return(default(T));
            }

            return(type.GetValue <T>());
        }