Example #1
0
        private static Int32Type ConvertFrom(object o)
        {
            var type = new Int32Type();

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

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