Exemplo n.º 1
0
        // Equals
        public override bool Equals(object objectValue)
        {
            Column column = objectValue as Column;

            return
                ((column != null) &&
                 (String.Compare(Name, column.Name) == 0) &&
                 (
                     ((_dataType == null) && (column.DataType == null)) ||
                     ((_dataType != null) && _dataType.Equals(column.DataType))
                 ));
        }
Exemplo n.º 2
0
 public override bool Equals(object AObject)
 {
     if (AObject is SignatureElement)
     {
         SignatureElement LObject = (SignatureElement)AObject;
         return
             ((
                  ((FModifier == Modifier.Var) && (LObject.Modifier == Modifier.Var)) ||
                  ((FModifier != Modifier.Var) && (LObject.Modifier != Modifier.Var))
                  ) &&
              FDataType.Equals(LObject.DataType));
     }
     return(false);
 }
Exemplo n.º 3
0
 public bool Equals(IDataType dataType)
 {
     return((dataType is IListType) && _elementType.Equals(((IListType)dataType).ElementType));
 }