Begins a marked region. May be nested.
Namespace:
Gallio.FrameworkAssembly: Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.459.0)
Syntax
| C# |
|---|
public static IDisposable BeginMarker( Marker marker ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function BeginMarker ( _ marker As Marker _ ) As IDisposable |
Parameters
- marker
- Type: Gallio.Common.Markup..::.Marker
The marker.
Return Value
A Disposable object that calls End()()() when disposed. This is a convenience for use with the C# "using" statement.
Remarks
A marker is a hidden tag that labels its contents with a semantic class. It is roughly equivalent in operation to an HTML "span" tag. Various tools may inspect the markers and modify the presentation accordingly.
This is a convenience method that forwards the request to the current default log stream writer as returned by the Default property.
Examples
using (Log.BeginMarker(Marker.Monospace))
{
Log.WriteLine(contents);
}