Struct KVValue ​
Namespace: ValveResourceFormat.Serialization.KeyValues
Assembly: ValveResourceFormat.dll
Structure to hold type + flag + value
csharp
public readonly struct KVValueConstructors ​
KVValue(KVValueType, object) ​
Initializes a new instance of the struct.
csharp
public KVValue(KVValueType type, object value)Parameters ​
type KVValueType
The value type.
value object
The value.
KVValue(KVValueType, KVFlag, object) ​
Initializes a new instance of the struct.
csharp
public KVValue(KVValueType type, KVFlag flag, object value)Parameters ​
type KVValueType
The value type.
flag KVFlag
The value flag.
value object
The value.
KVValue(object?) ​
Initializes a new instance of the struct, inferring the type from the value.
csharp
public KVValue(object? value)Parameters ​
value object?
The value.
Properties ​
Flag ​
Gets the value flag.
csharp
public KVFlag Flag { get; }Property Value ​
Type ​
Gets the value type.
csharp
public KVValueType Type { get; }Property Value ​
KVValueType
Value ​
Gets the value.
csharp
public object? Value { get; }
