The TimeSpanFormatter type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() |
Clone |
Returns a writable copy of this formatter.
(Inherited from DataFormatterBase.) |
![]() |
Equals |
Determines whether the specified Object is equal to the current Object.
(Overrides DataFormatterBaseEquals(Object).) |
![]() |
Format |
Converts a TimeSpan value to a string representation.
(Overrides DataFormatterBaseFormat(Object).) |
![]() |
FormatInvalid |
Formats an invalid value. If error is not null,
the return value includes the "(error)" string, otherwise
EmptyString is returned.
(Inherited from DataFormatterBase.) |
![]() |
GetHashCode |
Gets a hash code for the current Object.
(Overrides DataFormatterBaseGetHashCode.) |
![]() |
GetType |
Gets the Type of the current instance. (Inherited from Object.) |
![]() |
Parse |
Converts a string representation to a TimeSpan value.
(Overrides DataFormatterBaseParse(String).) |
![]() |
TryParse |
Converts a string representation to a TimeSpan value. A return value indicates
whether the conversion succeeded or failed.
(Overrides DataFormatterBaseTryParse(String, Object).) |
See Also