PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Formatters Namespace / Formatter­Repository(TRole) Class / Formatter­Repository(TRole) Methods / Formatter­Repository(TRole).​Get Method / Formatter­Repository(TRole).​Get Method (Type)

FormatterRepository<TRole>.Get Method (Type)

Returns a formatter for a specific object. This overload should be used when the type of the object is not known at build time because the type is non-sealed.

Namespace:  PostSharp.Patterns.Formatters
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.10.5.0 (6.10.5.0)
Syntax
C#
public static IFormatter Get(
	Type objectType
)

Parameters

objectType
Type: System.Type
Object type.

Return Value

Type: IFormatter
The formatter the object objectType.
See Also