Esempio n. 1
0
 public void TestModel(User model, List<User> models)
 {
     Console.WriteLine(model.S);
     Console.WriteLine(models[0].I);
 }
Esempio n. 2
0
 static void Main(string[] args)
 {
     ICalc calc2 = ProxyFactory.CreateProxy<ICalc>(typeof(Calculater));
     calc2.Add(2, 3);
     calc2.Divide(6, 3);
     User model = new User();
     model.S = "asdasd";
     model.I = 12;
     List<User> models = new List<User>();
     models.Add(model);
     calc2.TestModel(model, models);
     Console.ReadKey(true);
 }