Class VdfNode
- Namespace
- LlamaLogic.ValveDataFormat
- Assembly
- LlamaLogic.ValveDataFormat.dll
Represents a node in a VDF document
public class VdfNode : IEquatable<VdfNode>
- Inheritance
-
VdfNode
- Implements
- Derived
- Inherited Members
Properties
TrailingComment
Gets/sets the comment which will follow the VdfNode
public string? TrailingComment { get; set; }
Property Value
Methods
Deserialize(StreamReader)
Deserializes a list of VdfNode from a specified reader
public static IReadOnlyList<VdfNode> Deserialize(StreamReader reader)
Parameters
readerStreamReader
Returns
DeserializeAsync(StreamReader)
Deserializes a list of VdfNode from a specified reader asynchronously
public static Task<IReadOnlyList<VdfNode>> DeserializeAsync(StreamReader reader)
Parameters
readerStreamReader
Returns
Equals(VdfNode?)
Indicates whether the current object is equal to another object of the same type.
public virtual bool Equals(VdfNode? other)
Parameters
otherVdfNodeAn 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
objobjectThe 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.
Parse(string)
public static IReadOnlyList<VdfNode> Parse(string s)
Parameters
Returns
Serialize(StreamWriter)
Serializes this VdfNode to the specified writer
public void Serialize(StreamWriter writer)
Parameters
writerStreamWriter
SerializeAsync(StreamWriter)
Serializes this VdfNode to the specified writer asynchronously
public ValueTask SerializeAsync(StreamWriter writer)
Parameters
writerStreamWriter
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
TryParse(string?, out IReadOnlyList<VdfNode>)
public static bool TryParse(string? s, out IReadOnlyList<VdfNode> result)
Parameters
sstringThe string to parse
resultIReadOnlyList<VdfNode>The list of VdfNode if
swas successfully parsed
Returns
Operators
operator ==(VdfNode?, VdfNode?)
public static bool operator ==(VdfNode? left, VdfNode? right)
Parameters
Returns
operator !=(VdfNode?, VdfNode?)
public static bool operator !=(VdfNode? left, VdfNode? right)