System.Reflection.CustomAttributeTypedArgument.Equals C# (CSharp) Method

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool
        public override bool Equals(object obj)
        {
            return obj == (object)this;
        }
        #endregion

Usage Example

        public override bool Equals(object obj)
        {
            if (!(obj is CustomAttributeNamedArgument))
            {
                return(false);
            }
            CustomAttributeNamedArgument other = (CustomAttributeNamedArgument)obj;

            return(other.memberInfo == memberInfo &&
                   typedArgument.Equals(other.typedArgument));
        }