Table of Contents

ToDefaultKind Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Core.dll
Source
src/Cuemon.Core/Extensions/DateTimeDecoratorExtensions.cs

ToDefaultKind(IDecorator<DateTime>)

Converts the enclosed DateTime of the decorator to a representation that is not specified as either local time or UTC.

public static DateTime ToDefaultKind(this IDecorator<DateTime> decorator)

Parameters

decorator IDecorator<DateTime>

The IDecorator<T> to extend.

Returns

DateTime

A new DateTime value initialized to Unspecified that has the same number of ticks as the enclosed DateTime of the decorator.

Exceptions

ArgumentNullException

decorator cannot be null.