Table of Contents

Class VdfSection

Namespace
LlamaLogic.ValveDataFormat
Assembly
LlamaLogic.ValveDataFormat.dll

Represents a section in a VDF document

public sealed class VdfSection : VdfNode, IEquatable<VdfNode>, IEquatable<VdfSection>
Inheritance
VdfSection
Implements
Inherited Members

Properties

this[int]

Gets/sets Value of the VdfKeyValuePair at the specified index of the section

public object this[int index] { get; set; }

Parameters

index int

Property Value

object

this[string]

Gets/sets Value of the VdfKeyValuePair with the specified key

public object this[string key] { get; set; }

Parameters

key string

Property Value

object

Nodes

Gets the list of VdfNode in the VdfSection

public IList<VdfNode> Nodes { get; }

Property Value

IList<VdfNode>

OpeningTrailingComment

Gets/sets the comment following the opening character ('{') of the section

public string? OpeningTrailingComment { get; set; }

Property Value

string

Methods

Equals(VdfNode?)

Indicates whether the current object is equal to another object of the same type.

public override bool Equals(VdfNode? other)

Parameters

other VdfNode

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(VdfSection?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(VdfSection? other)

Parameters

other VdfSection

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Operators

operator ==(VdfSection?, VdfSection?)

public static bool operator ==(VdfSection? left, VdfSection? right)

Parameters

left VdfSection
right VdfSection

Returns

bool

operator !=(VdfSection?, VdfSection?)

public static bool operator !=(VdfSection? left, VdfSection? right)

Parameters

left VdfSection
right VdfSection

Returns

bool