Table of Contents

Class TreeBranch

Namespace
Nops.Core
Assembly
Nops.Core.dll

An ordered branch of TreeItems. Preserves insertion order for MAC/AAD computation. A branch may represent a mapping (keys are strings) or a sequence/array (keys are int indices, indicated by IsSequence). Sequences do NOT contribute their index to the SOPS AAD/MAC path.

public sealed class TreeBranch : List<TreeItem>, IList<TreeItem>, ICollection<TreeItem>, IReadOnlyList<TreeItem>, IReadOnlyCollection<TreeItem>, IEnumerable<TreeItem>, IList, ICollection, IEnumerable
Inheritance
TreeBranch
Implements
Inherited Members

Constructors

TreeBranch()

Creates an empty map branch.

public TreeBranch()

TreeBranch(bool)

Creates an empty branch that is a sequence when isSequence is true.

public TreeBranch(bool isSequence)

Parameters

isSequence bool

Properties

IsSequence

True when this branch represents an array/sequence (keys are int indices).

public bool IsSequence { get; set; }

Property Value

bool