## Boolean class


Classe che conserva i membri statici del tipo [System.Boolean](./) .[Net](../../system.net/).

```cpp
class Boolean
```

## Metodi

| Metodo | Descrizione |
| --- | --- |
| static [Parse](./parse/)(const String\&) | Converte la stringa specificata in un valore di tipo bool. |
| static [TryParse](./tryparse/)(const String\&, bool\&) | Converte la stringa specificata in un valore di tipo bool. |
## Campi

| Campo | Descrizione |
| --- | --- |
| static [FalseString](./falsestring/) | [String](../string/) rappresentazione del valore booleano 'false'. |
| static [TrueString](./truestring/) | [String](../string/) rappresentazione del valore booleano 'true'. |
## Osservazioni



```cpp
#include <system/boolean.h>

using namespace System;

int main()
{
  // Crea la variabile boolean.
  bool isWeekend = false;

  // Analizza la stringa di input e stampa il risultato.
  if (Boolean::TryParse(u"True", isWeekend))
  {
    std::cout << "Is weekend: " << (isWeekend ? "Yes" : "No");
  }
  else
  {
    std::cerr << "Something went wrong" << std::endl;
  }

  return 0;
}
/*
This code example produces the following output:
Is weekend: Yes
*/
```

## Vedi anche

* Namespace [System](../)
* Library [Aspose.Page for C++](../../)
