Table of Contents

Class VdfKeyValuePair

Namespace
LlamaLogic.ValveDataFormat
Assembly
LlamaLogic.ValveDataFormat.dll

Represents a key-value pair in a VDF document

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

Constructors

VdfKeyValuePair()

Represents a key-value pair in a VDF document

public VdfKeyValuePair()

Properties

Key

Gets/sets the key of the key-value pair

public string Key { get; set; }

Property Value

string

KeyTrailingComment

Gets/sets the comment following the key

public string? KeyTrailingComment { get; set; }

Property Value

string

Value

Gets/sets the value of the key-value pair

public object Value { get; set; }

Property Value

object

Methods

Equals(VdfKeyValuePair?)

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

public bool Equals(VdfKeyValuePair? other)

Parameters

other VdfKeyValuePair

An object to compare with this object.

Returns

bool

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

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(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 ==(VdfKeyValuePair?, VdfKeyValuePair?)

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

Parameters

left VdfKeyValuePair
right VdfKeyValuePair

Returns

bool

operator !=(VdfKeyValuePair?, VdfKeyValuePair?)

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

Parameters

left VdfKeyValuePair
right VdfKeyValuePair

Returns

bool