Class VariantType
- Namespace
- GLib
- Assembly
- GLib-2.0.dll
public sealed class VariantType : IDisposable, BoxedRecord, IEquatable<VariantType>
- Inheritance
-
VariantType
- Implements
- Inherited Members
Constructors
VariantType(VariantTypeOwnedHandle)
public VariantType(VariantTypeOwnedHandle handle)
Parameters
handle
VariantTypeOwnedHandle
Fields
String
public static readonly VariantType String
Field Value
Variant
public static readonly VariantType Variant
Field Value
Properties
Handle
public VariantTypeOwnedHandle Handle { get; }
Property Value
Methods
Checked(string)
public static VariantType Checked(string typeString)
Parameters
typeString
string
Returns
Copy()
public VariantType Copy()
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
DupString()
public string DupString()
Returns
Element()
public VariantType Element()
Returns
Equal(VariantType)
public bool Equal(VariantType type2)
Parameters
type2
VariantType
Returns
Equals(VariantType?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(VariantType? other)
Parameters
other
VariantTypeAn 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
First()
public VariantType First()
Returns
Free()
public void Free()
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.
GetStringLength()
public nuint GetStringLength()
Returns
Hash()
public uint Hash()
Returns
IsArray()
public bool IsArray()
Returns
IsBasic()
public bool IsBasic()
Returns
IsContainer()
public bool IsContainer()
Returns
IsDefinite()
public bool IsDefinite()
Returns
IsDictEntry()
public bool IsDictEntry()
Returns
IsMaybe()
public bool IsMaybe()
Returns
IsSubtypeOf(VariantType)
public bool IsSubtypeOf(VariantType supertype)
Parameters
supertype
VariantType
Returns
IsTuple()
public bool IsTuple()
Returns
IsVariant()
public bool IsVariant()
Returns
Key()
public VariantType Key()
Returns
NItems()
public nuint NItems()
Returns
New(string)
[Version("2.24")]
public static VariantType New(string typeString)
Parameters
typeString
string
Returns
NewArray(VariantType)
public static VariantType NewArray(VariantType element)
Parameters
element
VariantType
Returns
NewDictEntry(VariantType, VariantType)
public static VariantType NewDictEntry(VariantType key, VariantType value)
Parameters
key
VariantTypevalue
VariantType
Returns
NewMaybe(VariantType)
public static VariantType NewMaybe(VariantType element)
Parameters
element
VariantType
Returns
NewTuple(VariantType[])
public static VariantType NewTuple(VariantType[] items)
Parameters
items
VariantType[]
Returns
Next()
public VariantType Next()
Returns
PeekString()
public string PeekString()
Returns
StringGetDepth(string)
public static nuint StringGetDepth(string typeString)
Parameters
typeString
string
Returns
StringIsValid(string)
public static bool StringIsValid(string typeString)
Parameters
typeString
string
Returns
StringScan(string, string?, out string)
[Version("2.24")]
public static bool StringScan(string @string, string? limit, out string endptr)
Parameters
Returns
Value()
public VariantType Value()