示例#1
0
 /// <inheritdoc />
 public int CompareTo(InterlockedBoolean other)
 {
     return(GetValue().CompareTo(other.GetValue()));
 }
示例#2
0
 /// <inheritdoc />
 public bool Equals(InterlockedBoolean other)
 {
     return(Equals(other.GetValue()));
 }
示例#3
0
 /// <summary>
 ///    Converts the given <paramref name="value" /> instance to a <see cref="Boolean" />.
 /// </summary>
 /// <param name="value">
 ///    The value to convert.
 /// </param>
 /// <returns>
 ///    The <see cref="Boolean" /> representation of <paramref name="value" />.
 /// </returns>
 public static bool ToBoolean(InterlockedBoolean value)
 {
     return(value.GetValue());
 }