public override bool Equals(object obj) { if (obj == null || !(obj is ERRawMaterialTypeEntity)) { return(false); } return(TypeCode.Equals((obj as ERRawMaterialTypeEntity).TypeCode)); }
/// <inheritdoc/> public override bool IsComparable(SqlType type) { if (!(type is IntervalType)) { return(false); } // TODO: better check ... return(TypeCode.Equals(type.TypeCode)); }
public int Points() { return(TypeCode.Equals(Constants.K_SCORE_SAFETY) ? 2 : 6); }
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)); }