Table of Contents
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

kind TimeSpanFormatKind

Predefined 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

format string

Custom format string to use.