TimeSpanUnitAttribute Class

Specifies the default unit to use for a System.TimeSpan property.

Inheritance Hierarchy

Syntax

public sealed class TimeSpanUnitAttribute : System.Attribute

Constructors

Name Description
TimeSpanUnitAttribute(TimeSpanUnit unit)

Initializes a new instance of the TimeSpanUnitAttribute class.

Properties

Name Description
Unit

Gets the unit.

Methods

Name Description
GetTimeSpan(double value)