Inheritance: System.Attribute
        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }
            DataObjectAttribute attribute = obj as DataObjectAttribute;

            return((attribute != null) && (attribute.IsDataObject == this.IsDataObject));
        }
Example #2
0
        /// <internalonly/>
        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }

            DataObjectAttribute other = obj as DataObjectAttribute;

            return((other != null) && (other.IsDataObject == IsDataObject));
        }
 static DataObjectAttribute()
 {
     DataObject    = new DataObjectAttribute(true);
     NonDataObject = new DataObjectAttribute(false);
     Default       = NonDataObject;
 }
		static DataObjectAttribute () {
			DataObject = new DataObjectAttribute (true);
			NonDataObject = new DataObjectAttribute (false);
			Default = NonDataObject;
		}