Example #1
0
 public void Stsfld(DerivedDerived bar)
 {
     sderived = bar;
 }
Example #2
0
 public void DerivedDerivedSpecificCouldNotBeGeneralized(DerivedDerived specific)
 {
     specific.Bar(999, "bar");
     specific.DerivedDerivedSpecific();
     specific.Foo();
 }
Example #3
0
 public int BarAsSpecializedArgument(string hash, DerivedDerived bar)
 {
     FooCouldBeBase(bar);
     return(0);
 }
Example #4
0
 public void Stfld(DerivedDerived bar)
 {
     derived = bar;
 }
Example #5
0
 public int BarCouldBeGeneralizedButNotFoo(string foo, DerivedDerived bar)
 {
     bar.Bar(42, "hash");
     return(foo.Length);
 }
Example #6
0
 public void BarAndFooCouldBeGeneralized(Derived foo, DerivedDerived bar)
 {
     bar.Bar(42, "hash");
     foo.Foo();
 }
Example #7
0
 public void DerivedDerivedBarCouldBeDerived(DerivedDerived bar)
 {
     bar.Bar(0, null);
 }
Example #8
0
 public void DerivedDerivedFooCouldBeBase(int dummy, DerivedDerived foo)
 {
     foo.Foo();
 }
Example #9
0
 public void Stsfld2(DerivedDerived bar)
 {
     sderived = bar;//no warn since we use specific below
     bar.DerivedDerivedSpecific();
 }