static void Main(string[] args) { try { Account <int> acc1 = new Account <int>(345678, 10000); Account <string> acc2 = new Account <string>("123456", 10000); Account <double> acc3 = new Account <double>(12345.44, 10000); DemindAccount <char> acc4 = new DemindAccount <char>('/', 10000); DemindAccount <object> acc5 = new DemindAccount <object>(557, 10000); Person per1 = new Person(1, 10000); Person per2 = new Person(2, 10000); Person per3 = new Person(3, 10000); Person per4 = new Person(4, 10000); Transact.Execute <Person>(per1, per2, 1000); Transact.Execute <Person>(per3, per4, 1000); Transact.Execute <Person>(per3, per1, 1000); Transact.Execute <Person>(per4, per2, 1000); } catch (Exception ex) { Console.WriteLine("\n ERROR : " + ex.Message); } finally { Console.ReadKey(); } }