StreamingContext.Equals(Object) StreamingContext.Equals(Object) StreamingContext.Equals(Object) StreamingContext.Equals(Object) Method

定义

确定两个 StreamingContext 实例是否包含相同值。Determines whether two StreamingContext instances contain the same values.

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

参数

obj
Object Object Object Object

要与当前实例进行比较的对象。An object to compare with the current instance.

返回

如果指定对象为 StreamingContext 的实例并且等于当前实例的值,则为 true;否则为 falsetrue if the specified object is an instance of StreamingContext and equals the value of the current instance; otherwise, false.

注解

两个代码组相等,如果它们具有相同ContextStateTwo code groups are equivalent if they have the same Context and State.

适用于