Class VariantBuilder
- Namespace
- GLib
- Assembly
- GLib-2.0.dll
public sealed class VariantBuilder : BoxedRecord, IEquatable<VariantBuilder>
- Inheritance
-
VariantBuilder
- Implements
- Inherited Members
Constructors
VariantBuilder()
public VariantBuilder()
VariantBuilder(VariantBuilderOwnedHandle)
public VariantBuilder(VariantBuilderOwnedHandle handle)
Parameters
handle
VariantBuilderOwnedHandle
Properties
Handle
public VariantBuilderOwnedHandle Handle { get; }
Property Value
Methods
AddValue(Variant)
[Version("2.24")]
public void AddValue(Variant value)
Parameters
value
Variant
Clear()
[Version("2.24")]
public void Clear()
Close()
[Version("2.24")]
public void Close()
End()
[Version("2.24")]
public Variant End()
Returns
Equals(VariantBuilder?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(VariantBuilder? other)
Parameters
other
VariantBuilderAn 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
GetGType()
public static Type GetGType()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Init(VariantType)
[Version("2.24")]
public void Init(VariantType type)
Parameters
type
VariantType
New(VariantType)
[Version("2.24")]
public static VariantBuilder New(VariantType type)
Parameters
type
VariantType
Returns
Open(VariantType)
[Version("2.24")]
public void Open(VariantType type)
Parameters
type
VariantType
Ref()
[Version("2.24")]
public VariantBuilder Ref()
Returns
Unref()
[Version("2.24")]
public void Unref()