Enhanced C#
Language of your choice: library documentation

Documentation moved to ecsharp.net

GitHub doesn't support HTTP redirects, so you'll be redirected in 3 seconds.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Properties | Public Member Functions | List of all members
Loyc.NullMessageSink Class Reference

Discards all messages. However, there is a Count property that increases by one with each message received. More...


Source file:
Inheritance diagram for Loyc.NullMessageSink:
Loyc.IMessageSink Loyc.Collections.ICount Loyc.Collections.IIsEmpty

Remarks

Discards all messages. However, there is a Count property that increases by one with each message received.

Properties

int Count [get, set]
 
bool IsEmpty [get]
 
- Properties inherited from Loyc.Collections.ICount
int Count [get]
 Gets the number of items in the collection. More...
 
- Properties inherited from Loyc.Collections.IIsEmpty
bool IsEmpty [get]
 

Public Member Functions

void Write (Severity type, object context, string format)
 Writes a message to the target that this object represents. More...
 
void Write (Severity type, object context, string format, object arg0, object arg1=null)
 
void Write (Severity type, object context, string format, params object[] args)
 
bool IsEnabled (Severity type)
 Always returns false. More...
 

Member Function Documentation

bool Loyc.NullMessageSink.IsEnabled ( Severity  type)
inline

Always returns false.

Implements Loyc.IMessageSink.

void Loyc.NullMessageSink.Write ( Severity  type,
object  context,
string  format 
)
inline

Writes a message to the target that this object represents.

Parameters
typeSeverity or importance of the message; widely-used types include Error, Warning, Note, Debug, and Verbose. The special type Detail is intended to provide more information about a previous message.
contextAn object that the message is related to, or that represents the location that the message applies to. The message sink may try to convert this object to a string and include it in its output. See also MessageSink.LocationString().
formatA message to display. If there are additional arguments, placeholders such as {0} and {1} refer to these arguments.

Implements Loyc.IMessageSink.