Table of Contents

Class Atomic

Namespace
L5Sharp.Types
Assembly
L5Sharp.dll

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 string

The type name to test.

Returns

bool

true if name 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 string

The 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

name string

The name of the atomic type.

value string

The value of the atomic type.

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 string

The 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.