Table of Contents

ToUtcKind Method

Definition

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

ToUtcKind(IDecorator<DateTime>)

Converts the enclosed DateTime of the decorator to a Coordinated Universal Time (UTC) representation.

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

Parameters

decorator IDecorator<DateTime>

The IDecorator<T> to extend.

Returns

DateTime

A new DateTime value initialized to Utc that has the same number of ticks as the object represented by the enclosed DateTime of the decorator.

Exceptions

ArgumentNullException

decorator cannot be null.