예제 #1
0
 public static IFruit AsFruit(this IBanana banana)
 {
     return(new FruitAdaptor(banana.GetName()));
 }