PostSharp//API Reference/Post­Sharp.​Patterns.​Formatters/Formatter­Repository<TRole>/Set­Dynamic
Open sandboxFocus

Method SetDynamic


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.