public class BeispielApp : GLib.Object { private string _nachricht = ""; public string nachricht { public get { return _nachricht; } public set { _nachricht += value; } } public void schreibe_nachricht() { print("%s\n", nachricht); } public static int main(string[] args) { var bsp = new BeispielApp(); bsp.nachricht = "Hello"; bsp.nachricht = " "; bsp.nachricht = "World!"; bsp.schreibe_nachricht(); return 0; } }