public sealed class DateTimeOffsetConverter : TypeConverter<DateTimeOffset>,
ILocalizable
Public NotInheritable Class DateTimeOffsetConverter
Inherits TypeConverter(Of DateTimeOffset)
Implements ILocalizable
public ref class DateTimeOffsetConverter sealed : public TypeConverter<DateTimeOffset>,
ILocalizable
[<SealedAttribute>]
type DateTimeOffsetConverter =
class
inherit TypeConverter<DateTimeOffset>
interface ILocalizable
end
DateTimeOffsetConverter | Initializes a new DateTimeOffsetConverter instance and allows to specify a format string. |
AcceptsNull |
Gets a value indicating whether the converter accepts
null references as input.
(Overrides TypeConverterTAcceptsNull) |
DataType |
The data type the converter converts.
(Inherited from TypeConverterT) |
DefaultValue |
Gets the value to return if the parser finds no data in the CSV,
or if parsing fails and
the Throwing property is false.
(Inherited from TypeConverterT) |
Format | The format string to use. |
FormatProvider | Gets the IFormatProvider instance that provides culture-specific formatting information. |
ParseExact | Gets a value indicating whether the text in the CSV file must exactly match the format determined with Format. |
Styles | Gets a combined value of the DateTimeStyles enum that provides additional information for parsing. |
Throwing |
Gets a value indicating whether the converter throws a
FormatException
when a parsing error occurs, or if it returns
DefaultValue value instead.
(Inherited from TypeConverterT) |
ConvertToString |
Converts value to a String or null.
(Overrides TypeConverterTConvertToString(T)) |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
Parse |
Parses a read-only span of characters and returns
the corresponding .NET object.
(Inherited from TypeConverterT) |
ToString | Returns a string that represents the current object. (Inherited from Object) |
TryParse |
Tries to parse a read-only span of characters as a T value.
(Overrides TypeConverterTTryParse(ReadOnlySpanChar, T)) |