MemberInfo.Equals(Object) Method

Definition

返回一个值,该值指示此实例是否与指定的对象相等。Returns a value that indicates whether this instance is equal to a specified object.

public:
 override bool Equals(System::Object ^ obj);
public override bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

Parameters

obj
Object

与此实例进行比较的对象,或为 nullAn object to compare with this instance, or null.

Returns

Boolean

如果 true 等于此实例的类型和值,则为 obj;否则为 falsetrue if obj equals the type and value of this instance; otherwise, false.

Implements

Applies to