Table of Contents

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

VariantBuilderOwnedHandle

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

Variant

Equals(VariantBuilder?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(VariantBuilder? other)

Parameters

other VariantBuilder

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetGType()

public static Type GetGType()

Returns

Type

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

VariantBuilder

Open(VariantType)

[Version("2.24")]
public void Open(VariantType type)

Parameters

type VariantType

Ref()

[Version("2.24")]
public VariantBuilder Ref()

Returns

VariantBuilder

Unref()

[Version("2.24")]
public void Unref()