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