Re: [Vala] GValue get type



Replying to myself :)

On 12/11/2011 10:32 PM, Antono Vasiljev wrote:

foreach (var e in hash.entries) {
// THIS IS PSEUDOCODE
if (e.value.type == typeof(int)) {
counter += e.value;
}
}

if (e.value.holds(typeof(string)))

http://www.valadoc.org/gobject-2.0/GLib.Value.html




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]