コード例 #1
0
        public void CheckValueTypeUnsupportedGenericType()
        {
            BeanDefinition         beanDefinition = BeanDescriptor.GetDefinition(new Bean());
            BeanPropertyDescriptor primaryKey     = beanDefinition.PrimaryKey;

            primaryKey.CheckValueType(new Generic <Bean>());
        }
コード例 #2
0
        public void CheckValueTypeBadType()
        {
            BeanDefinition         beanDefinition = BeanDescriptor.GetDefinition(new Bean());
            BeanPropertyDescriptor primaryKey     = beanDefinition.PrimaryKey;

            primaryKey.CheckValueType(String.Empty);
        }
コード例 #3
0
        public void CheckValueTypeBadGenericType()
        {
            BeanDefinition         beanDefinition = BeanDescriptor.GetDefinition(new Bean());
            BeanPropertyDescriptor primaryKey     = beanDefinition.PrimaryKey;
            Nullable <double>      d = new Nullable <double>();

            d = 3;
            primaryKey.CheckValueType(d);
        }