Table of Contents

Method GetPath

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

GetPath(object[])

Navigates a chain of mapping keys (string) and/or sequence indices (int) starting from the top-level mapping, disposing every intermediate FileNode along the way. Equivalent to repeated indexer chaining (e.g. fs["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. The first segment must be a string (a key of the top-level mapping).

Returns

FileNode

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