Table of Contents

DefaultPropertyValueResolver Method

Definition

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

DefaultPropertyValueResolver(IDecorator<object>, PropertyInfo)

Resolves the default value of a property from the enclosed object of the specified decorator.

public static object DefaultPropertyValueResolver(this IDecorator<object> decorator, PropertyInfo pi)

Parameters

decorator IDecorator<object>

The IDecorator<T> to extend.

pi PropertyInfo

The PropertyInfo of the property to resolve the value for.

Returns

object

The value of the property if the enclosed object is not null; otherwise, null.

Remarks

This API supports the product infrastructure and is not intended to be used directly from your code.