示例#1
0
        protected FieldReferenceBase(FieldReferenceBase fieldReference)
        {
            if (fieldReference is null)
            {
                throw new ArgumentNullException(nameof(fieldReference));
            }

            TypeName  = fieldReference.TypeName;
            FieldName = fieldReference.FieldName;
        }
示例#2
0
        protected bool IsEqualTo(FieldReferenceBase other)
        {
            if (other is null)
            {
                return(false);
            }

            if (IsReferenceEqualTo(other))
            {
                return(true);
            }

            return(other.TypeName.Equals(TypeName, StringComparison.Ordinal) &&
                   other.FieldName.Equals(FieldName, StringComparison.Ordinal));
        }