LocalizedTextProvider Class |
Base class for providers of error messages. Implements chain of responsibility between multiple providers.
System.Object
PostSharp.Patterns.Utilities.LocalizedTextProvider
PostSharp.Patterns.Contracts.ContractLocalizedTextProvider
PostSharp.Patterns.Utilities.LocalizedTextProvider
PostSharp.Patterns.Contracts.ContractLocalizedTextProvider
Namespace: PostSharp.Patterns.Utilities
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 5.0.55.0 (5.0.55.0)
C#
public abstract class LocalizedTextProvider
The LocalizedTextProvider type exposes the following members.
Name | Description | |
---|---|---|
LocalizedTextProvider |
Initializes a new instance of LocalizedTextProvider class.
|
Name | Description | |
---|---|---|
FormatString |
Formats a string. An implementation would typically invoke Format(String, Object[]).
| |
GetMessage |
Gets a message declared by the LocalizedTextProvider or the rest of responsibility chain if applicable.
|
Name | Description | |
---|---|---|
QueryInterface<T> |
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.) |
Each chain of providers has it's own base class derived from this one, which contains static field Current that points to current
provider.