ValueSource.Equals(Object) 方法

定义

返回一个值,指示此 ValueSource 是否与指定对象相等。Returns a value indicating whether this ValueSource is equal to a specified object.

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

参数

o
Object

与此 ValueSource 进行比较的对象。The object to compare with this ValueSource.

返回

如果提供的对象与当前 ValueSource 相同,则为 true;否则为 falsetrue if the provided object is equivalent to the current ValueSource; otherwise, false.

注解

此实现支持基于每个ValueSource结构的每个属性值的值相等性。This implementation supports value equality, based on each of the property values of each ValueSource structure.

适用于

另请参阅