Inheritance
System.Object
DiagnosticsProperty<T>
public class DiagnosticsProperty<T> : DiagnosticsNode
Type Parameters
Constructors
Declaration
public DiagnosticsProperty(string name, T value, string description = null, string ifNull = null, string ifEmpty = null, bool showName = true, bool showSeparator = true, object defaultValue = null, string tooltip = null, bool missingIfNull = false, DiagnosticsTreeStyle style = DiagnosticsTreeStyle.singleLine, DiagnosticLevel level = DiagnosticLevel.info)
Parameters
Type |
Name |
Description |
System.String |
name |
|
T |
value |
|
System.String |
description |
|
System.String |
ifNull |
|
System.String |
ifEmpty |
|
System.Boolean |
showName |
|
System.Boolean |
showSeparator |
|
System.Object |
defaultValue |
|
System.String |
tooltip |
|
System.Boolean |
missingIfNull |
|
DiagnosticsTreeStyle |
style |
|
DiagnosticLevel |
level |
|
Fields
Declaration
public readonly object defaultValue
Field Value
Type |
Description |
System.Object |
|
Declaration
public readonly string ifEmpty
Field Value
Type |
Description |
System.String |
|
Declaration
public readonly string ifNull
Field Value
Type |
Description |
System.String |
|
Declaration
public readonly bool missingIfNull
Field Value
Type |
Description |
System.Boolean |
|
Declaration
public readonly string tooltip
Field Value
Type |
Description |
System.String |
|
Properties
Declaration
public Exception exception { get; }
Property Value
Type |
Description |
System.Exception |
|
Declaration
public override DiagnosticLevel level { get; }
Property Value
Overrides
Declaration
public Type propertyType { get; }
Property Value
Type |
Description |
System.Type |
|
Declaration
Property Value
Declaration
public override object valueObject { get; }
Property Value
Type |
Description |
System.Object |
|
Overrides
Methods
Declaration
public override List<DiagnosticsNode> getChildren()
Returns
Overrides
Declaration
public override List<DiagnosticsNode> getProperties()
Returns
Overrides
Declaration
public static DiagnosticsProperty<T> lazy(string name, ComputePropertyValueCallback<T> computeValue, string description = null, string ifNull = null, string ifEmpty = null, bool showName = true, bool showSeparator = true, object defaultValue = null, string tooltip = null, bool missingIfNull = false, DiagnosticsTreeStyle style = DiagnosticsTreeStyle.singleLine, DiagnosticLevel level = DiagnosticLevel.info)
Parameters
Type |
Name |
Description |
System.String |
name |
|
ComputePropertyValueCallback<T> |
computeValue |
|
System.String |
description |
|
System.String |
ifNull |
|
System.String |
ifEmpty |
|
System.Boolean |
showName |
|
System.Boolean |
showSeparator |
|
System.Object |
defaultValue |
|
System.String |
tooltip |
|
System.Boolean |
missingIfNull |
|
DiagnosticsTreeStyle |
style |
|
DiagnosticLevel |
level |
|
Returns
toDescription(TextTreeConfiguration)
Declaration
public override string toDescription(TextTreeConfiguration parentConfiguration = null)
Parameters
Returns
Type |
Description |
System.String |
|
Overrides
Declaration
public override Dictionary<string, object> toJsonMap()
Returns
Type |
Description |
System.Collections.Generic.Dictionary<System.String, System.Object> |
|
Overrides
valueToString(TextTreeConfiguration)
Declaration
protected virtual string valueToString(TextTreeConfiguration parentConfiguration = null)
Parameters
Returns
Type |
Description |
System.String |
|