PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Formatters Namespace / Formatter­Repository(TRole) Class / Formatter­Repository(TRole) Methods / Formatter­Repository(TRole).​Set­Dynamic(T) Method

FormatterRepository<TRole>.SetDynamic<T> 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.

Namespace:  PostSharp.Patterns.Formatters
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.17.0 (6.5.17.0)
Syntax
C#
public static void SetDynamic<T>()
where T : class

Type Parameters

T
Type of the parameter.
See Also