コード例 #1
0
        public override bool Match(object obj)
        {
            if (obj == this)
            {
                return(true);
            }
            DataObjectMethodAttribute attribute = obj as DataObjectMethodAttribute;

            return((attribute != null) && (attribute.MethodType == this.MethodType));
        }
コード例 #2
0
		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");
		}
コード例 #3
0
        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));
        }
コード例 #7
0
		public void Ctor () {
			DataObjectMethodAttribute attr = new DataObjectMethodAttribute (DataObjectMethodType.Fill);
			Assert.IsFalse (attr.IsDefault);
		}