struct bool

in global :: System

Represents a Boolean ( or ) value.


public int CompareTo( bool value )

Compares this instance to a specified object and returns an integer that indicates their relationship to one another.

  • value A object to compare to this instance.
  • Returns A signed integer that indicates the relative values of this instance and . Return Value Condition Less than zero This instance is and is . Zero This instance and are equal (either both are or both are ). Greater than zero This instance is and is .

public int CompareTo( object obj )

Compares this instance to a specified object and returns an integer that indicates their relationship to one another.

  • obj An object to compare to this instance, or .
  • Returns A signed integer that indicates the relative order of this instance and . Return Value Condition Less than zero This instance is and is . Zero This instance and are equal (either both are or both are ). Greater than zero This instance is and is . -or- is .

public bool Equals( bool obj )

Returns a value indicating whether this instance is equal to a specified object.

  • obj A value to compare to this instance.
  • Returns if has the same value as this instance; otherwise, .

public bool Equals( object obj )

Returns a value indicating whether this instance is equal to a specified object.

  • obj An object to compare to this instance.
  • Returns if is a and has the same value as this instance; otherwise, .

public static string FalseString

Represents the Boolean value as a string. This field is read-only.

public static bool Parse( string value )

Converts the specified string representation of a logical value to its equivalent.

  • value A string containing the value to convert.
  • Returns if is equivalent to ; if is equivalent to .

public string ToString( IFormatProvider provider )

Converts the value of this instance to its equivalent string representation (either "True" or "False").

  • provider (Reserved) An object.
  • Returns if the value of this instance is , or if the value of this instance is .

public static string TrueString

Represents the Boolean value as a string. This field is read-only.

public static bool TryParse( string value, ref bool result )

Tries to convert the specified string representation of a logical value to its equivalent. A return value indicates whether the conversion succeeded or failed.

  • value A string containing the value to convert.
  • result When this method returns, if the conversion succeeded, contains if is equal to or if is equal to . If the conversion failed, contains . The conversion fails if is or is not equal to the value of either the or field.
  • Returns if was converted successfully; otherwise, .

public int GetHashCode( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public bool TryFormat( Span<char> destination, ref int charsWritten )

😔 No documentation found.

public static bool Parse( ReadOnlySpan<char> value )

😔 No documentation found.

public static bool TryParse( ReadOnlySpan<char> value, ref bool result )

😔 No documentation found.

public TypeCode GetTypeCode( )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.