PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Extensibility Namespace / IFormatting­Service Interface

IFormattingService Interface

Provides a service similar to Format(String, Object[]), but uses the same formatter as the one used by PostSharp for error messages. This formatter does a better job at formatting objects like Type or MethodInfo.

Namespace:  PostSharp.Extensibility
Assembly:  PostSharp (in PostSharp.dll) Version: (
public interface IFormattingService : IService
Public methodFormat(String, Object[])
Formats a string with the default IFormatProvider.
Public methodFormat(IFormatProvider, String, Object[])
Formats a string and specifies the IFormatProvider.
See Also