Table of Contents

BencodeNodeOptions Struct

Definition

Namespace
Bodu.Text.Bencode.Nodes
Assembly
Bodu.Text.Bencode.dll
Package
Bodu.Text.Bencode 1.3.0
Source
BencodeNodeOptions.cs

Defines the customizations applied to a mutable Bencode (BEP 3) node tree.

public struct BencodeNodeOptions
Inherited Members
Extension Methods

Remarks

The options govern in-memory behavior only; they do not affect serialization, which always emits canonical Bencode with dictionary keys in ascending bytewise order regardless of the configured comparison.

Properties

PropertyNameCaseInsensitive

Gets or sets a value indicating whether BencodeObject property-name lookups ignore case.

public bool PropertyNameCaseInsensitive { readonly get; set; }

Property Value

bool

true when property-name lookups ignore case; otherwise false.

Remarks

Bencode dictionary keys are byte strings compared exactly, so a dictionary can hold two keys that differ only in case, such as A and a. An object that ignores case cannot hold both, so Parse(ReadOnlySpan<byte>, BencodeNodeOptions) throws BencodeFormatException at the second of the two keys rather than keep only one of their values.

Applies to

ProductVersions
.NET8, 10