using System;
using System.Threading;
-#if NET_4_0 || BOOTSTRAP_NET_4_0
+#if NET_4_0
namespace System.Threading
{
public struct CancellationToken
return this.Source == other.Source;
}
- public override bool Equals (object obj)
+ public override bool Equals (object other)
{
- return (obj is CancellationToken) ? Equals ((CancellationToken)obj) : false;
+ return (other is CancellationToken) ? Equals ((CancellationToken)other) : false;
}
public override int GetHashCode ()
return Source.GetHashCode ();
}
- public static bool operator == (CancellationToken lhs, CancellationToken rhs)
+ public static bool operator == (CancellationToken left, CancellationToken right)
{
- return lhs.Equals (rhs);
+ return left.Equals (right);
}
- public static bool operator != (CancellationToken lhs, CancellationToken rhs)
+ public static bool operator != (CancellationToken left, CancellationToken right)
{
- return !lhs.Equals (rhs);
+ return !left.Equals (right);
}
public bool CanBeCanceled {