Table of Contents

Method GetPath

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

GetPath(object[])

Navigates a chain of mapping keys (string) and/or sequence indices (int), disposing every intermediate FileNode along the way. Equivalent to repeated indexer chaining (e.g. node["a"][2]["b"]), except that the indexer chain leaves every intermediate node unreferenced - each one is still a real native allocation that would otherwise sit around until the GC finalizes it.

public FileNode? GetPath(object[] path)

Parameters

path object[]

One or more mapping keys / sequence indices to follow, in order.

Returns

FileNode

The node at the end of the path, or null if any segment along the way is missing.