Exemplo n.º 1
0
 public void DerivedDerivedSpecificCouldNotBeGeneralized(DerivedDerived specific)
 {
     specific.Bar(999, "bar");
     specific.DerivedDerivedSpecific();
     specific.Foo();
 }
Exemplo n.º 2
0
 public void BarAndFooCouldBeGeneralized(Derived foo, DerivedDerived bar)
 {
     bar.Bar(42, "hash");
     foo.Foo();
 }
Exemplo n.º 3
0
 public int BarCouldBeGeneralizedButNotFoo(string foo, DerivedDerived bar)
 {
     bar.Bar(42, "hash");
     return(foo.Length);
 }
Exemplo n.º 4
0
 public void DerivedDerivedBarCouldBeDerived(DerivedDerived bar)
 {
     bar.Bar(0, null);
 }