GObject 類

public class Foo : Object {
    public string prop { construct; get; }
}

它適用於使用 GObject Introspection 的內部 API。這是宣告類的推薦方法。