Esempio n. 1
0
        public override bool Equals(object obj)
        {
            if (obj == null || !(obj is ERRawMaterialTypeEntity))
            {
                return(false);
            }

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

            // TODO: better check ...
            return(TypeCode.Equals(type.TypeCode));
        }
Esempio n. 3
0
 public int Points()
 {
     return(TypeCode.Equals(Constants.K_SCORE_SAFETY) ? 2 : 6);
 }
Esempio n. 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));
 }