private static void PropertyChanged(Bank objBank) { var objThread = new Thread(() => { using(StreamWriter objStreamWriter = new StreamWriter("bank.txt")) { objStreamWriter.Write(objBank.ToString()); } }); objThread.Start(); }
static void Main(string[] args) { var objBank = new Bank(); objBank.Name = "lol"; objBank.Name = "lol2"; }