示例#1
0
        private static EmptyType ConvertFrom(object o)
        {
            var type = new EmptyType();

            type.SetValue(o);
            return(type);
        }
示例#2
0
        private static T ConvertTo <T>(EmptyType type)
        {
            if (type == null)
            {
                return(default(T));
            }

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