Class KVDocumentExtensions
Namespace: ValveResourceFormat.Serialization.KeyValues
Assembly: ValveResourceFormat.dll
Extension methods for KV3 document serialization and creation.
csharp
public static class KVDocumentExtensionsInheritance
Methods
ParseKV3(Stream)
Parses a KeyValues3 file from the specified stream.
csharp
public static KVDocument ParseKV3(Stream stream)Parameters
stream Stream
Returns
KVDocument
ParseKV3(string)
Parses a KeyValues3 file from the specified filename.
csharp
public static KVDocument ParseKV3(string filename)Parameters
filename string
Returns
KVDocument
ToKV3Document(KVObject, KV3ID?)
Creates a KV3 document from a root with optional format.
csharp
public static KVDocument ToKV3Document(this KVObject root, KV3ID? format = null)Parameters
root KVObject
format KV3ID?
Returns
KVDocument
ToKV3String(KVDocument)
Serializes a to KV3 text format.
csharp
public static string ToKV3String(this KVDocument doc)Parameters
doc KVDocument
Returns
ToKV3String(KVObject, KV3ID?)
Serializes a to KV3 text format with optional format.
csharp
public static string ToKV3String(this KVObject root, KV3ID? format = null)Parameters
root KVObject
format KV3ID?
Returns
WriteKV3Text(KVDocument, IndentedTextWriter)
Writes the as KV3 text to an .
csharp
public static void WriteKV3Text(this KVDocument doc, IndentedTextWriter writer)Parameters
doc KVDocument
writer IndentedTextWriter

