Class Atomic
A static factory for AtomicType objects.
public static class Atomic
- Inheritance
-
Atomic
- Inherited Members
Methods
IsAtomic(string)
Returns indication to whether the provided type name is the name of an atomic type.
public static bool IsAtomic(string name)
Parameters
name
stringThe type name to test.
Returns
- bool
true
ifname
is the name of any atomic type; otherwise,false
.
Parse(string)
Parses the provided string value into an atomic type value.
public static AtomicType Parse(string value)
Parameters
value
stringThe value of the atomic type.
Returns
- AtomicType
A AtomicType representing the value and format of the provided value.
Exceptions
- FormatException
value
does not have a valid format to be parsed as an atomic type.
Parse(string, string)
Parses the provided string value into the atomic type value specified by name.
public static AtomicType Parse(string name, string value)
Parameters
Returns
- AtomicType
A AtomicType representing the value and format of the provided value.
Exceptions
- InvalidOperationException
name
does not represent a valid atomic type.- FormatException
value
does not have a valid format to be parsed as the specified atomic type.
Parse<TAtomic>(string)
Parses the provided string value into an atomic type value.
public static TAtomic Parse<TAtomic>(string value) where TAtomic : AtomicType
Parameters
value
stringThe value of the atomic type.
Returns
- TAtomic
A AtomicType representing the value and format of the provided value.
Type Parameters
TAtomic
Exceptions
- FormatException
value
does not have a valid format to be parsed as an atomic type.