Table of Contents

ToFriendlyName Method

Definition

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

ToFriendlyName(Type, Action<TypeNameOptions>)

Converts the name of the type with the intend to be understood by humans.

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

Parameters

type Type

The Type to extend.

setup Action<TypeNameOptions>

The TypeNameOptions which may be configured.

Returns

string

A sanitized string that represents the type.

Exceptions

ArgumentNullException

type cannot be null.