C# Class Serilog.Events.ScalarValue

A property value corresponding to a simple, scalar type.
Inheritance: LogEventPropertyValue
Mostra file Open project: serilog/serilog Class Usage Examples

Public Methods

Method Description
Equals ( object obj ) : bool

Determine if this instance is equal to obj.

GetHashCode ( ) : int

Get a hash code representing the value.

Render ( TextWriter output, string format = null, IFormatProvider formatProvider = null ) : void

Render the value to the output.

ScalarValue ( object value ) : System

Construct a ScalarValue with the specified value.

Method Details

Equals() public method

Determine if this instance is equal to obj.
public Equals ( object obj ) : bool
obj object The instance to compare with.
return bool

GetHashCode() public method

Get a hash code representing the value.
public GetHashCode ( ) : int
return int

Render() public method

Render the value to the output.
public Render ( TextWriter output, string format = null, IFormatProvider formatProvider = null ) : void
output System.IO.TextWriter The output.
format string A format string applied to the value, or null.
formatProvider IFormatProvider A format provider to apply to the value, or null to use the default.
return void

ScalarValue() public method

Construct a ScalarValue with the specified value.
public ScalarValue ( object value ) : System
value object The value, which may be null.
return System