Table of Contents

Method FindLastKeyOccurrenceInPath

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

FindLastKeyOccurrenceInPath(PathElem[])

Finds the last occurrence of a key in a certain path. A path should typically only contain one key but in case there are multiple, it will return the one of the deepest child node.

public static string FindLastKeyOccurrenceInPath(PathElem[] pathElems)

Parameters

pathElems PathElem[]

The path elements in which needs to be searched.

Returns

string

The key that is found in the path.