Noda Time
IPattern<(Of <(<'T>)>)> Interface
NamespacesNodaTime.TextIPattern<(Of <(<'T>)>)>

[This is preliminary documentation and is subject to change.]

Generic interface supporting parsing and formatting. Parsing always results in a ParseResult<(Of <(<'T>)>)> which can represent success or failure.
Declaration Syntax
C#Visual BasicVisual C++
public interface IPattern<T>
Public Interface IPattern(Of T)
generic<typename T>
public interface class IPattern
Generic Template Parameters
T
Type of value to parse or format.
Members
All MembersMethods



IconMemberDescription
Format(T)
Formats the given value as text according to the rules of this pattern.

Parse(String)
Parses the given text value according to the rules of this pattern.

Remarks
Idiomatic text handling in Noda Time involves creating a pattern once and reusing it multiple times, rather than specifying the pattern text repeatedly. All patterns are immutable and thread-safe, and include the culture used for localization purposes.

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)