ToDefaultKind Method
Definition
- Namespace
- Cuemon
- Assemblies
- Cuemon.Core.dll
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
decoratorIDecorator<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
decoratorcannot be null.