BencodeNodeOptions Struct
Definition
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
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
| Product | Versions |
|---|---|
| .NET | 8, 10 |