1 2 3 4 5 6 7 8 9 10
namespace System // Damit überall verfügbar { public static class SystemExtensions { public static string FS(this string thistr, params object[] args) { return String.Format(thistr, args); } } }
public class CommandNotExecutableException : ApplicationException{ public CommandNotExecutableException(Command command) : base("Der Befehl '{0}' ist momentan nicht verfügbar.".FS(command.Caption)) { }}