19 explicit property(
const xtd::string& value) : value_(value) {}
31 const xtd::string& value()
const noexcept {
return value_;}
32 template<
class value_t>
53 template<
class value_t>
60 static property from(
bool value) {
return property(string::format(
"{}", value));}
61 static property from(
double value) {
return property(string::format(
"{}", value));}
62 static property from(
float value) {
return property(string::format(
"{}", value));}
63 static property from(
sbyte value) {
return property(string::format(
"{}", value));}
64 static property from(
int16 value) {
return property(string::format(
"{}", value));}
65 static property from(
int32 value) {
return property(string::format(
"{}", value));}
66 static property from(
int64 value) {
return property(string::format(
"{}", value));}
67 static property from(
const xtd::string& value) {
return property(string::format(
"{}", value));}
68 static property from(
xtd::byte value) {
return property(string::format(
"{}", value));}
69 static property from(
uint16 value) {
return property(string::format(
"{}", value));}
70 static property from(
uint32 value) {
return property(string::format(
"{}", value));}
71 static property from(
uint64 value) {
return property(string::format(
"{}", value));}
72 template<
class value_t>
73 static property from(value_t value) {
return property(string::format(
"{}", value));}
object()=default
Create a new instance of the ultimate base class object.
xtd::string to_string() const noexcept override
Returns a xtd::string that represents the current object.
Definition property.hpp:47
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
int8_t sbyte
Represents a 8-bit signed integer.
Definition sbyte.hpp:23
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
uint8_t byte
Represents a 8-bit unsigned integer.
Definition byte.hpp:23
uintmax_t uintptr
Represent a pointer or a handle.
Definition uintptr.hpp:23
int64_t int64
Represents a 64-bit signed integer.
Definition int64.hpp:23
int16_t int16
Represents a 16-bit signed integer.
Definition int16.hpp:23
uint16_t uint16
Represents a 16-bit unsigned integer.
Definition uint16.hpp:23
uint32_t uint32
Represents a 32-bit unsigned integer.
Definition uint32.hpp:23
uint64_t uint64
Represents a 64-bit unsigned integer.
Definition uint64.hpp:23
double parse< double >(const std::string &str, number_styles styles)
Convert a string into a type.
Definition parse.hpp:208
bool parse< bool >(const std::string &str)
Convert a string into a type.
Definition parse.hpp:370
float parse< float >(const std::string &str, number_styles styles)
Convert a string into a type.
Definition parse.hpp:190
value_t parse(const std::string &str)
Convert a string into a type.
Definition parse.hpp:34
Contains classes and interfaces that enable browser-server communication. This namespace includes the...
Definition css_reader.hpp:14
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::object class.
Contains xtd::string alias.