Guid.Equals Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a value that indicates whether two instances of Guid represent the same value.
Overloads
Equals(Guid) |
Returns a value indicating whether this instance and a specified Guid object represent the same value. |
Equals(Object) |
Returns a value that indicates whether this instance is equal to a specified object. |
Equals(Guid)
- Source:
- Guid.cs
- Source:
- Guid.cs
- Source:
- Guid.cs
Returns a value indicating whether this instance and a specified Guid object represent the same value.
public:
virtual bool Equals(Guid g);
public bool Equals (Guid g);
override this.Equals : Guid -> bool
Public Function Equals (g As Guid) As Boolean
Parameters
- g
- Guid
An object to compare to this instance.
Returns
true
if g
is equal to this instance; otherwise, false
.
Implements
Remarks
Two Guid objects are equal if they have identical byte values.
This method performs slightly better than the Equals method because it does not have to box the g
parameter.
See also
Applies to
Equals(Object)
- Source:
- Guid.cs
- Source:
- Guid.cs
- Source:
- Guid.cs
Returns a value that indicates whether this instance is equal to a specified object.
public:
override bool Equals(System::Object ^ o);
public override bool Equals (object o);
public override bool Equals (object? o);
override this.Equals : obj -> bool
Public Overrides Function Equals (o As Object) As Boolean
Parameters
- o
- Object
The object to compare with this instance.
Returns
true
if o
is a Guid that has the same value as this instance; otherwise, false
.
Remarks
Two Guid objects are equal if they have identical byte values.