PostSharpAPI ReferencePost­Sharp.​Patterns.​FormattersFormatter­Repository<TRole>Set­Dynamic
Open sandboxFocus

FormatterRepository<TRole>.SetDynamic Method

SetDynamic<T>()

Requests that formatters for parameters of a given type will be resolved according to the type of the parameter value, not to the type of the parameter itself. Interfaces, abstract classes and the Object class are always resolved dynamically.

Declaration
public static void SetDynamic<T>()
where T : class
Type Parameters
Name Description
T

Type of the parameter.