Пример #1
0
            public void StoreLocal(Derived d)
            {
                Base b = d;                                             // we don't try to analyze how locals are used

                b.BaseMethod(10);
                d.BaseMethod(10);
            }
Пример #2
0
    static void Main(string[] args)
    {
        Base a = new Base("a");

        a.BaseMethod();

        Derived b = new Derived("b");

        b.BaseMethod();
        b.DerivedMethod();
    }
Пример #3
0
    public static void Main()
    {
        Derived d = new Derived();

        Console.WriteLine("x = {0}", d.x);
        d.BaseMethod();

        Hogehoge h = new Hogehoge();

        Console.WriteLine("x = {0}", h.x);
        h.BaseMethod();
        h.Show();
    }
Пример #4
0
 public static void Static(Derived d)
 {
     d.BaseMethod(10);
 }
Пример #5
0
 public void StoreStaticField(Derived d)
 {
     ms_b = d;
     d.BaseMethod(10);
 }
Пример #6
0
 public void StoreField(Derived d)
 {
     m_b = d;
     d.BaseMethod(10);
 }
Пример #7
0
 public void CrossCalls(Derived d)
 {
     d.BaseMethod(10 + d.GetHashCode());
 }
Пример #8
0
 public void TwoCalls(Derived d)
 {
     d.BaseMethod(10);
     d.BaseMethod(20);
 }
Пример #9
0
 public void BCall(Derived d)
 {
     d.BaseMethod(10);
 }
Пример #10
0
 public void Call(Derived d)
 {
     d.BaseMethod(10);
     StoreField(d);
 }
Пример #11
0
 public void CrossCalls(Derived d)
 {
     d.BaseMethod(10 + d.GetHashCode());
 }
Пример #12
0
 public void StoreStaticField(Derived d)
 {
     ms_d = d;
     d.BaseMethod(10);
 }
Пример #13
0
 public static void Static(Derived d)
 {
     d.BaseMethod(10);
 }
Пример #14
0
 public void StoreLocal(Derived d)
 {
     Base b = d;				// we don't try to analyze how locals are used
     b.BaseMethod(10);
     d.BaseMethod(10);
 }
Пример #15
0
 public void StoreField(Derived d)
 {
     m_d = d;
     d.BaseMethod(10);
 }
Пример #16
0
 public void CrossCalls(Derived d)
 {
     d.BaseMethod(10);
     d.DerivedMethod(20);
 }
Пример #17
0
 public void CrossCalls(Derived d)
 {
     d.BaseMethod(10);
     d.DerivedMethod(20);
 }
Пример #18
0
 public void Call(Derived d)
 {
     d.BaseMethod(10);
     StoreField(d);
 }
Пример #19
0
 public void BCall(Derived d)
 {
     d.BaseMethod(10);
 }
Пример #20
0
 public void TwoCalls(Derived d)
 {
     d.BaseMethod(10);
     d.BaseMethod(20);
 }