Table of Contents

BencodeProperty Struct

Definition

Namespace
Bodu.Text.Bencode.Document
Assembly
Bodu.Text.Bencode.dll
Package
Bodu.Text.Bencode 1.0.0
Source
BencodeProperty.cs

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

string

The value of Name.

Applies to

ProductVersions
.NET8, 10