Table of Contents

Method GetValueByCase

Namespace
Skyline.DataMiner.DataSources.OpenConfig.Gnmi.Utils
Assembly
Skyline.DataMiner.DataSources.OpenConfig.Gnmi.dll

GetValueByCase(TypedValue)

Given a gNMI TypedValue, will return the appropriate object type with the parsed value.

public static object GetValueByCase(TypedValue typedValue)

Parameters

typedValue TypedValue

The value to parse.

Returns

object

The value contained in an appropriate type: string, bool, double, long, or ulong

Exceptions

ArgumentException

When the underlying type is not recognized, this exception will throw what type is detected.