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

C# | Visual Basic | Visual C++ |
public interface IPattern<T>
Public Interface IPattern(Of T)
generic<typename T> public interface class IPattern

- T
- Type of value to parse or format.

All Members | Methods | ||||
Icon | Member | Description |
---|---|---|
![]() | 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.
|

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)