PostSharpAPI ReferencePost­Sharp.​Patterns.​UtilitiesLocalized­Text­Provider
Open sandboxFocus

LocalizedTextProvider Class

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

Inheritance
LocalizedTextProvider
Namespace: PostSharp.Patterns.Utilities
Assembly: PostSharp.Patterns.Common.dll
Syntax
public abstract class LocalizedTextProvider : Object
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.

Constructors

Name Description
LocalizedTextProvider(LocalizedTextProvider)

Initializes a new instance of LocalizedTextProvider class.

Methods

Name Description
FormatString(String, Object[])

Formats a string. An implementation would typically invoke System.String.Format(System.String,System.Object[]).

GetMessage(String)

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