Table of Contents

Class CmdArgsUtil

Namespace
DxFeed.Graal.Net.Utils
Assembly
DxFeed.Graal.Net.dll

A collection of static helper methods for parses command-line arguments.

public static class CmdArgsUtil
Inheritance
CmdArgsUtil
Inherited Members

Methods

ParseFromTime(string)

Reads Date from String. This method is designed to understand ISO 8601 formatted date and time.

public static DateTimeOffset ParseFromTime(string fromTime)

Parameters

fromTime string

Returns

DateTimeOffset

The date parsed from value.

ParseProperties(string)

Parses the input collection of strings and returns a collection of key-value properties. The input strings should look like comma-separated: "key=value".

public static IReadOnlyDictionary<string, string> ParseProperties(string properties)

Parameters

properties string

The input comma-separated key-value pairs.

Returns

IReadOnlyDictionary<string, string>

Returns collection of key-value properties.

Exceptions

ArgumentException

If string has wrong format.

ParseSymbols(string)

Parses an input string and returns a set of symbols.

public static IEnumerable<string> ParseSymbols(string symbols)

Parameters

symbols string

The coma-separated list of symbols.

Returns

IEnumerable<string>

Returns created a set of parsed symbols.

ParseTypes(string)

Parses an input string and returns a set of event types.

public static IEnumerable<Type> ParseTypes(string types)

Parameters

types string

The coma-separated list of event types.

Returns

IEnumerable<Type>

Returns a set of parsed types.

Exceptions

ArgumentException

If the passed type is not available.