Пример #1
0
 private static void PropertyChanged(Bank objBank) {
    var objThread = new Thread(() => {
       using(StreamWriter objStreamWriter = new StreamWriter("bank.txt")) {
          objStreamWriter.Write(objBank.ToString());
       }
    });
    objThread.Start();
 }
Пример #2
0
 static void Main(string[] args) {
    var objBank = new Bank();
    objBank.Name = "lol";
    objBank.Name = "lol2";
 }