예제 #1
0
        public override bool Equals(object obj)
        {
            if (obj == null || !(obj is ERRawMaterialTypeEntity))
            {
                return(false);
            }

            return(TypeCode.Equals((obj as ERRawMaterialTypeEntity).TypeCode));
        }
예제 #2
0
        /// <inheritdoc/>
        public override bool IsComparable(SqlType type)
        {
            if (!(type is IntervalType))
            {
                return(false);
            }

            // TODO: better check ...
            return(TypeCode.Equals(type.TypeCode));
        }
예제 #3
0
 public int Points()
 {
     return(TypeCode.Equals(Constants.K_SCORE_SAFETY) ? 2 : 6);
 }
예제 #4
0
 internal static bool IsTypeSupported(TypeCode type)
 {
     return(!type.Equals(TypeCode.Char) && !type.Equals(TypeCode.DBNull) && !type.Equals(TypeCode.Empty) && !type.Equals(TypeCode.Object) && !type.Equals(TypeCode.UInt16));
 }