Пример #1
0
        static void Main(string[] args)
        {
            NamespaceCollection lib = GirParser.Parse("../../gir-files", "Gtk-3.0");
            Generator           gen = new Generator(lib);

            foreach (var ns in lib.Namespaces)
            {
                string code = gen.Generate(ns.Name);
                File.WriteAllText($"../Tmds.GLib/Generated/{ns.Name}.Generated.cs", code);
                //Console.WriteLine(gen.Generate(ns));
            }
        }
Пример #2
0
 public Namespace(NamespaceCollection nsc, string name)
 {
     NamespaceCollection = nsc;
     Name = name;
 }
Пример #3
0
 public Generator(NamespaceCollection namespaces)
 {
     _namespaces = namespaces;
 }