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

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

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