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

FormatterRepository<TRole>.SetDynamic Method


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.

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

Type of the parameter.