Пример #1
0
 protected static bool IsOfCompatibleType(MemberInfo member, params Type[] compatibleTypes)
 {
     return(compatibleTypes != null && compatibleTypes.Any(t => t.IsAssignableFrom(PropertyOrFieldInfo.GetPropertyOrFieldType(member))));
 }
        public override bool IsCompatibleWithMember(MemberInfo member)
        {
            Type type = PropertyOrFieldInfo.GetPropertyOrFieldType(member);

            return(IsIntegerType(type) || IsDecimalType(type) || IsStringType(type));
        }
        public override bool IsCompatibleWithMember(MemberInfo member)
        {
            Type propType = PropertyOrFieldInfo.GetPropertyOrFieldType(member);

            return(propType != null && propType.IsEnum);
        }