Table of Contents

Struct StringTokenizer

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Allows to split string into tokens.

public struct StringTokenizer : IDisposable
Implements

Constructors

StringTokenizer(string, char, string?)

Initializes a new instance of the StringTokenizer struct.

StringTokenizer(string, IFormatProvider, string?)

Initializes a new instance of the StringTokenizer struct.

Properties

CurrentToken

Gets current token value.

Methods

Dispose()

Releases resources.

ReadDouble(char?)

Reads next token and converts it to the double number. Raises an exception if convertion is not successful.

ReadInt32(char?)

Reads next token and converts it to the int number. Raises an exception if convertion is not successful.

ReadSingle(char?)

Reads next token and converts it to the float number. Raises an exception if convertion is not successful.

ReadString(char?)

Reads next token and returns it as a string.

TryReadDouble(out double, char?)

Reads next token and tries to convert it to the double number. A return value indicates whether the conversion succeeded.

TryReadInt32(out int, char?)

Reads next token and tries to convert it to the int number. A return value indicates whether the conversion succeeded.

TryReadSingle(out float, char?)

Reads next token and tries to convert it to the float number. A return value indicates whether the conversion succeeded.

TryReadString(out string?, char?)

Tries to read next token.