PostSharp6.3/API Reference/Post­Sharp.​Patterns.​Utilities Namespace/Localized­Text­Provider Class

LocalizedTextProvider Class

Base class for providers of error messages. Implements chain of responsibility between multiple providers.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Utilities.LocalizedTextProvider
    PostSharp.Patterns.Contracts.ContractLocalizedTextProvider

Namespace:  PostSharp.Patterns.Utilities
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.3.11.0 (6.3.11.0)
Syntax
C#
public abstract class LocalizedTextProvider

The LocalizedTextProvider type exposes the following members.

Constructors
  NameDescription
Protected methodLocalizedTextProvider
Initializes a new instance of LocalizedTextProvider class.
Methods
  NameDescription
Public methodFormatString
Formats a string. An implementation would typically invoke Format(String, Object[]).
Public methodGetMessage
Gets a message declared by the LocalizedTextProvider or the rest of responsibility chain if applicable.
Remarks
Each chain of providers has it's own base class derived from this one, which contains static field Current that points to current provider.
See Also