BencodeProperty Struct
Definition
Represents a single key/value pair within an object BencodeElement. Instances are produced by BencodeElement.ObjectEnumerator.
public readonly struct BencodeProperty
- Inherited Members
- Extension Methods
Remarks
The Value is a view onto the owning BencodeDocument and is valid only for that document's lifetime; after the document is disposed, accessing the value throws ObjectDisposedException.
Properties
Name
Gets the property name, decoded from the dictionary key as UTF-8 text.
public string Name { get; }
Property Value
- string
The property name.
Value
Gets the property value.
public BencodeElement Value { get; }
Property Value
- BencodeElement
A BencodeElement view of the value.
Methods
ToString()
Returns the property name.
public override string ToString()
Returns
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |