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