/// <summary> /// Determines whether the specified AtomicBoolean is equal to this instance. /// </summary> /// <param name="value">The AtomicBoolean to compare with this instance.</param> /// <returns>true if the specified AtomicBoolean is equal to this instance; otherwise, false.</returns> public bool Equals(AtomicBoolean value) { return(this._flag == value._flag); }
/// <summary> /// Gets new AtomicBoolean instance from a boolean value. /// </summary> /// <param name="value">The initial value.</param> /// <returns>AtomicBoolean instance.</returns> public static AtomicBoolean FromValue(bool value) { AtomicBoolean result = new AtomicBoolean(value); return(result); }