API reference
Constructor TimeSpanFormatAttribute
- Namespace
- DisCatSharp.Common.Serialization
- Assembly
- DisCatSharp.Common.dll
TimeSpanFormatAttribute(TimeSpanFormatKind)
Specifies a predefined format to use.
public TimeSpanFormatAttribute(TimeSpanFormatKind kind)
Parameters
kindTimeSpanFormatKindPredefined format kind to use.
TimeSpanFormatAttribute(string)
Specifies a custom format to use.
See https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-timespan-format-strings for more details.
public TimeSpanFormatAttribute(string format)
Parameters
formatstringCustom format string to use.