Table of Contents

ToFriendlyName Method

Definition

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

ToFriendlyName(IDecorator<Type>, Action<TypeNameOptions>)

Returns a human-readable string that represents the underlying Type of the decorator.

public static string ToFriendlyName(this IDecorator<Type> decorator, Action<TypeNameOptions> setup = null)

Parameters

decorator IDecorator<Type>

The IDecorator<T> to extend.

setup Action<TypeNameOptions>

The TypeNameOptions which may be configured.

Returns

string

A human readable string that represents the underlying Type of the decorator.

Exceptions

ArgumentNullException

decorator cannot be null.