using System; using System.Collections.Generic; using System.Data.Common; namespace nalpm { class Program { static void Main(string[] args) { errno_t err = errno_t.ERR_OK; using var h = new Handle("/", "/home/luebsj/db"); using var db = h.RegisterSyncDB("jkl-repo", SigLevel.SIG_PACKAGE_OPTIONAL | SigLevel.SIG_USE_DEFAULT); db.Servers = new List {"http://a.b.c", "http://d.e.f", "http://arch.johnluebs.com/x86_64"}; var a = new string[3]; db.Servers.CopyTo(a, 0); Console.WriteLine("Hello World! {0} {1} {2}", db.Name, Alpm.Version(), a[0]); } } }