Example: Get the type string for the type

public static int main () {
// Output: ``as``
Variant var1 = new Variant.strv ({"a", "b"});
unowned string type = var1.get_type_string ();
print ("%s\n", type);
return 0;
}

 valac --pkg glib-2.0 GLib.Variant.get_type_string.vala

See:




2022 vala-language.org