Re: [Vala] GValue get type
- From: Antono Vasiljev <self antono info>
- To: vala-list gnome org
- Subject: Re: [Vala] GValue get type
- Date: Sun, 11 Dec 2011 22:41:08 +0300
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]