Open sandboxFocus

Interface IMessageDispenser

Provides a method that returns a text given its key.

Namespace: PostSharp.Extensibility
Assembly: PostSharp.dll
Syntax
public interface IMessageDispenser
Remarks

A message dispenser supplies the message texts of a MessageSource, so that all the texts of a component are stored in a single place. MessageSource calls GetMessage(string) with the message identifier to get the formatting string of the message text, and with the message identifier followed by ? to get the help link. Return null when the key is unknown.

Derive from MessageDispenser instead of implementing this interface from scratch when your message identifiers consist of a prefix followed by a number.

Methods

Name Description
GetMessage(string)

Returns the message text for a message key.

See Also