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
KeyTrailingComment
Gets/sets the comment following the key
public string? KeyTrailingComment { get; set; }
Property Value
Value
Gets/sets the value of the key-value pair
public object Value { get; set; }
Property Value
Methods
Equals(VdfKeyValuePair?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(VdfKeyValuePair? other)
Parameters
other
VdfKeyValuePairAn object to compare with this object.
Returns
Equals(VdfNode?)
Indicates whether the current object is equal to another object of the same type.
public override bool Equals(VdfNode? other)
Parameters
other
VdfNodeAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
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
VdfKeyValuePairright
VdfKeyValuePair
Returns
operator !=(VdfKeyValuePair?, VdfKeyValuePair?)
public static bool operator !=(VdfKeyValuePair? left, VdfKeyValuePair? right)
Parameters
left
VdfKeyValuePairright
VdfKeyValuePair