コード例 #1
0
        protected override void CopyValues(ScalarProperty source)
        {
            var enumSource = source as EnumProperty;

            if (enumSource == null)
            {
                throw new NotSupportedException("The provided source was not a EnumPropertyBuilder.");
            }

            EnumTypeInfo          = new ClrTypeInfo(enumSource.EnumType);
            UnderlyingNumericType = enumSource.UnderlyingNumericType;
        }
コード例 #2
0
 public static Type GetClrTypeFromNumericType(NumericPropertyType numericType)
 {
     return(_numericTypes.Where(p => p.Value == numericType).Select(p => p.Key).FirstOrDefault());
 }