System.Guid.Equals Method

Returns a value indicating whether this instance and a specified Guid object represent the same value.

Syntax

public bool Equals (Guid g)

Parameters

g
An object to compare to this instance.

Returns

true if g is equal to this instance; otherwise, false.

Remarks

This method performs slightly better than the Guid.Equals(object) method because it does not have to box the g parameter.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0