Class ScalarValue
A property value corresponding to a simple, scalar type.
public class ScalarValue : LogEventPropertyValue, IFormattable- Inheritance
- 
      
      
      ScalarValue
- Implements
- Inherited Members
Constructors
ScalarValue(object?)
Construct a ScalarValue with the specified value.
public ScalarValue(object? value)Parameters
- valueobject
- The value, which may be 
 .- null
Properties
Null
Scalar value representing null.
public static ScalarValue Null { get; }Property Value
Value
The value, which may be
nullpublic object? Value { get; }Property Value
Methods
Equals(object?)
Determine if this instance is equal to obj.
public override bool Equals(object? obj)Parameters
- objobject
- The instance to compare with. 
Returns
GetHashCode()
Get a hash code representing the value.
public override int GetHashCode()Returns
- int
- The instance's hash code. 
Render(TextWriter, string?, IFormatProvider?)
Render the value to the output.
public override void Render(TextWriter output, string? format = null, IFormatProvider? formatProvider = null)Parameters
- outputTextWriter
- The output. 
- formatstring
- A format string applied to the value, or null. 
- formatProviderIFormatProvider
- A format provider to apply to the value, or null to use the default. 
Exceptions
- ArgumentNullException
- When - outputis- null
- See Also