public override bool Match(object obj)
        {
            if (obj == this)
            {
                return(true);
            }
            DataObjectMethodAttribute attribute = obj as DataObjectMethodAttribute;

            return((attribute != null) && (attribute.MethodType == this.MethodType));
        }
		public void EqualsTest () {
			DataObjectMethodAttribute a1 = new DataObjectMethodAttribute (DataObjectMethodType.Fill);
			DataObjectMethodAttribute a2 = new DataObjectMethodAttribute (DataObjectMethodType.Delete);

			Assert.IsFalse (a1.Equals (a2), "#1");

			DataObjectMethodAttribute a3 = new DataObjectMethodAttribute (DataObjectMethodType.Delete);

			Assert.IsTrue (a2.Equals (a3), "#2");
		}
        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }
            DataObjectMethodAttribute attribute = obj as DataObjectMethodAttribute;

            return(((attribute != null) && (attribute.MethodType == this.MethodType)) && (attribute.IsDefault == this.IsDefault));
        }
Пример #4
0
        /// <internalonly/>
        public override bool Match(object obj)
        {
            if (obj == this)
            {
                return(true);
            }

            DataObjectMethodAttribute other = obj as DataObjectMethodAttribute;

            return((other != null) && (other.MethodType == MethodType));
        }
Пример #5
0
        /// <internalonly/>
        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }

            DataObjectMethodAttribute other = obj as DataObjectMethodAttribute;

            return((other != null) && (other.MethodType == MethodType) && (other.IsDefault == IsDefault));
        }
Пример #6
0
        /// <internalonly/>
        public /*TODO NETSTANDARD2.0 override*/ bool Match(object obj)
        {
            if (obj == this)
            {
                return(true);
            }

            DataObjectMethodAttribute other = obj as DataObjectMethodAttribute;

            return((other != null) && (other.MethodType == MethodType));
        }
		public void Ctor () {
			DataObjectMethodAttribute attr = new DataObjectMethodAttribute (DataObjectMethodType.Fill);
			Assert.IsFalse (attr.IsDefault);
		}