Table of Contents

GetDefaultValue Method

Definition

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

GetDefaultValue(IDecorator<Type>)

Gets the default value from the underlying Type of the decorator.

public static object GetDefaultValue(this IDecorator<Type> decorator)

Parameters

decorator IDecorator<Type>

Returns

object

The default value from the underlying Type of the decorator.

Remarks

Usage is primarily intended for struct.

Exceptions

ArgumentNullException

decorator cannot be null.