CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
boolean.h
1
2#pragma once
3
4#include <system/string.h>
5#include <system/iformatprovider.h>
6#include <system/globalization/number_styles.h>
7
8namespace System {
9
10namespace Globalization {
11 class CultureInfo;
12 class NumberFormatInfo;
13}
14
44{
45 RTTI_INFO_VALUE_TYPE(Boolean)
46public:
48 static ASPOSECPP_SHARED_API const String TrueString;
50 static ASPOSECPP_SHARED_API const String FalseString;
51
55 static ASPOSECPP_SHARED_API bool Parse(const String& value);
56
61 static ASPOSECPP_SHARED_API bool TryParse(const String& value, bool& result);
62};
63
64} // namespace System
Class that keeps static members of System.Boolean .Net type.
Definition: boolean.h:44
static bool TryParse(const String &value, bool &result)
Converts the specified string to a value of bool type.
static const String TrueString
String representation of 'true' boolean value.
Definition: boolean.h:48
static const String FalseString
String representation of 'false' boolean value.
Definition: boolean.h:50
static bool Parse(const String &value)
Converts the specified string to a value of bool type.
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
Definition: db_command.h:9