FileCodeGroup.Equals(Object) 方法
定义
确定指定的代码组是否等效于当前代码组。Determines whether the specified code group is equivalent to the current code group.
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
要与当前代码组比较的代码组。The code group to compare with the current code group.
返回
如果指定的代码组等效于当前代码组,则为 true;否则为 false。true if the specified code group is equivalent to the current code group; otherwise, false.
示例
下面的代码演示 Equals 如何使用方法来确定两个代码组是否相等。The following code shows the use of the Equals method to determine if two code groups are equal. 此代码示例是为类提供的更大示例的一部分 FileCodeGroup 。This code example is part of a larger example provided for the FileCodeGroup class.
if ( firstCodeGroup->Equals( secondCodeGroup ) )
if (firstCodeGroup.Equals(secondCodeGroup))
If (firstCodeGroup.Equals(secondCodeGroup)) Then