Table of Contents

Method ToClrValue

Namespace
RuleWright.Serialization
Assembly
RuleWright.Serialization.dll

ToClrValue()

Converts a scalar node to its CLR value: string, bool, null, or a number as long when integral, otherwise decimal when exactly representable, otherwise double.

public object? ToClrValue()

Returns

object

Exceptions

InvalidOperationException

The node is an object or array.