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
this[string]
Gets/sets Value of the VdfKeyValuePair with the specified key
public object this[string key] { get; set; }
Parameters
key
string
Property Value
Nodes
Gets the list of VdfNode in the VdfSection
public IList<VdfNode> Nodes { get; }
Property Value
OpeningTrailingComment
Gets/sets the comment following the opening character ('{') of the section
public string? OpeningTrailingComment { get; set; }
Property Value
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
VdfNodeAn object to compare with this object.
Returns
Equals(VdfSection?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(VdfSection? other)
Parameters
other
VdfSectionAn 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 ==(VdfSection?, VdfSection?)
public static bool operator ==(VdfSection? left, VdfSection? right)
Parameters
left
VdfSectionright
VdfSection
Returns
operator !=(VdfSection?, VdfSection?)
public static bool operator !=(VdfSection? left, VdfSection? right)
Parameters
left
VdfSectionright
VdfSection