* make AsyncFlowControl implement IEquatable<AsyncFlowControl>, fixes #31996
* remove test
* remove extra space
}
}
- public struct AsyncFlowControl : IDisposable
+ public struct AsyncFlowControl : IEquatable<AsyncFlowControl>, IDisposable
{
private Thread? _thread;
public override bool Equals(object? obj)
{
- return obj is AsyncFlowControl && Equals((AsyncFlowControl)obj);
+ return obj is AsyncFlowControl asyncControl && Equals(asyncControl);
}
public bool Equals(AsyncFlowControl obj)
public System.Threading.Mutex? Mutex { get { throw null; } }
public int MutexIndex { get { throw null; } }
}
- public partial struct AsyncFlowControl : System.IDisposable
+ public partial struct AsyncFlowControl : System.IEquatable<AsyncFlowControl>, System.IDisposable
{
private object _dummy;
private int _dummyPrimitive;