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
reader
StreamReader
Returns
DeserializeAsync(StreamReader)
Deserializes a list of VdfNode from a specified reader
asynchronously
public static Task<IReadOnlyList<VdfNode>> DeserializeAsync(StreamReader reader)
Parameters
reader
StreamReader
Returns
Equals(VdfNode?)
Indicates whether the current object is equal to another object of the same type.
public virtual 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.
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
writer
StreamWriter
SerializeAsync(StreamWriter)
Serializes this VdfNode to the specified writer
asynchronously
public ValueTask SerializeAsync(StreamWriter writer)
Parameters
writer
StreamWriter
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
s
stringThe string to parse
result
IReadOnlyList<VdfNode>The list of VdfNode if
s
was 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)