Open sandboxFocus

Class LocalizedTextProvider

Base class for providers of error messages. Implements the chain of responsibility between multiple providers.

Inheritance
LocalizedTextProvider
Namespace: PostSharp.Patterns.Utilities
Assembly: PostSharp.Patterns.Common.dll
Syntax
public abstract class LocalizedTextProvider
Remarks

Each chain of providers has its own base class derived from this one, which contains a static field Current that points to the current provider.

Constructors

Name Description
LocalizedTextProvider(LocalizedTextProvider)

Initializes a new instance of the LocalizedTextProvider class.

Methods

Name Description
FormatString(string, object[])

Formats a string. An implementation typically invokes Format(string, params object[]).

GetMessage(string)

Gets a message declared by the LocalizedTextProvider or by the rest of the responsibility chain, if applicable.

See Also