Esempio n. 1
0
 public double AFunction(this ClassB b)
 {
     bool condition = ...
                      return(condition ? b.GetMember1() : b.GetMember2());
 }