ValueTask.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.
Overloads
| Equals(Object) | Determines whether the specified object is equal to the current ValueTask instance. | 
| Equals(ValueTask) | Determines whether the specified ValueTask object is equal to the current ValueTask object. | 
Equals(Object)
- Source:
- ValueTask.cs
- Source:
- ValueTask.cs
- Source:
- ValueTask.cs
- Source:
- ValueTask.cs
Determines whether the specified object is equal to the current ValueTask instance.
public:
 override bool Equals(System::Object ^ obj);public override bool Equals(object? obj);public override bool Equals(object obj);override this.Equals : obj -> boolPublic Overrides Function Equals (obj As Object) As BooleanParameters
- obj
- Object
The object to compare with the current object.
Returns
true if the specified object is equal to the current object; otherwise, false.
Remarks
Two ValueTask instances are equal when they wrap the same Task or the same pair of the IValueTaskSource object and the token.
Applies to
Equals(ValueTask)
- Source:
- ValueTask.cs
- Source:
- ValueTask.cs
- Source:
- ValueTask.cs
- Source:
- ValueTask.cs
public:
 virtual bool Equals(System::Threading::Tasks::ValueTask other);public bool Equals(System.Threading.Tasks.ValueTask other);override this.Equals : System.Threading.Tasks.ValueTask -> boolPublic Function Equals (other As ValueTask) As BooleanParameters
- other
- ValueTask
The object to compare with the current object.
Returns
true if the specified object is equal to the current object; otherwise, false.
Implements
Remarks
Two ValueTask instances are equal when they wrap the same Task or the same pair of the IValueTaskSource object and the token.