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
namestringThe type name to test.
Returns
- bool
trueifnameis 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
valuestringThe value of the atomic type.
Returns
- AtomicType
A AtomicType representing the value and format of the provided value.
Exceptions
- FormatException
valuedoes 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
namedoes not represent a valid atomic type.- FormatException
valuedoes 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
valuestringThe value of the atomic type.
Returns
- TAtomic
A AtomicType representing the value and format of the provided value.
Type Parameters
TAtomic
Exceptions
- FormatException
valuedoes not have a valid format to be parsed as an atomic type.