mscorlib(4.0.0.0) API with additions
EventRegistrationToken.cs
2 {
4  [__DynamicallyInvokable]
5  public struct EventRegistrationToken
6  {
7  internal ulong m_value;
8 
9  internal ulong Value => m_value;
10 
11  internal EventRegistrationToken(ulong value)
12  {
13  m_value = value;
14  }
15 
21  [__DynamicallyInvokable]
23  {
24  return left.Equals(right);
25  }
26 
32  [__DynamicallyInvokable]
34  {
35  return !left.Equals(right);
36  }
37 
42  [__DynamicallyInvokable]
43  public override bool Equals(object obj)
44  {
45  if (!(obj is EventRegistrationToken))
46  {
47  return false;
48  }
49  return ((EventRegistrationToken)obj).Value == Value;
50  }
51 
54  [__DynamicallyInvokable]
55  public override int GetHashCode()
56  {
57  return m_value.GetHashCode();
58  }
59  }
60 }
A token that is returned when an event handler is added to a Windows Runtime event....
static bool operator !=(EventRegistrationToken left, EventRegistrationToken right)
Indicates whether two T:System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken instance...
override int GetHashCode()
Returns the hash code for this instance.
static bool operator==(EventRegistrationToken left, EventRegistrationToken right)
Indicates whether two T:System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken instance...
override bool Equals(object obj)
Returns a value that indicates whether the current object is equal to the specified object.