Пример #1
0
 public void SetComputeStrategy <U>()
     where U : ICanComputeZ, new()
 {
     this.surfaceComputer = new U();
 }
Пример #2
0
 public MovableObject()
 {
     this.moveStrategy    = new T();
     this.surfaceComputer = new C();
 }