Exemple #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);
            }
Exemple #2
0
    static void Main(string[] args)
    {
        Base a = new Base("a");

        a.BaseMethod();

        Derived b = new Derived("b");

        b.BaseMethod();
        b.DerivedMethod();
    }
Exemple #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();
    }
Exemple #4
0
 public static void Static(Derived d)
 {
     d.BaseMethod(10);
 }
Exemple #5
0
 public void StoreStaticField(Derived d)
 {
     ms_b = d;
     d.BaseMethod(10);
 }
Exemple #6
0
 public void StoreField(Derived d)
 {
     m_b = d;
     d.BaseMethod(10);
 }
Exemple #7
0
 public void CrossCalls(Derived d)
 {
     d.BaseMethod(10 + d.GetHashCode());
 }
Exemple #8
0
 public void TwoCalls(Derived d)
 {
     d.BaseMethod(10);
     d.BaseMethod(20);
 }
Exemple #9
0
 public void BCall(Derived d)
 {
     d.BaseMethod(10);
 }
Exemple #10
0
 public void Call(Derived d)
 {
     d.BaseMethod(10);
     StoreField(d);
 }
Exemple #11
0
 public void CrossCalls(Derived d)
 {
     d.BaseMethod(10 + d.GetHashCode());
 }
Exemple #12
0
 public void StoreStaticField(Derived d)
 {
     ms_d = d;
     d.BaseMethod(10);
 }
Exemple #13
0
 public static void Static(Derived d)
 {
     d.BaseMethod(10);
 }
Exemple #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);
 }
Exemple #15
0
 public void StoreField(Derived d)
 {
     m_d = d;
     d.BaseMethod(10);
 }
Exemple #16
0
 public void CrossCalls(Derived d)
 {
     d.BaseMethod(10);
     d.DerivedMethod(20);
 }
Exemple #17
0
 public void CrossCalls(Derived d)
 {
     d.BaseMethod(10);
     d.DerivedMethod(20);
 }
Exemple #18
0
 public void Call(Derived d)
 {
     d.BaseMethod(10);
     StoreField(d);
 }
Exemple #19
0
 public void BCall(Derived d)
 {
     d.BaseMethod(10);
 }
Exemple #20
0
 public void TwoCalls(Derived d)
 {
     d.BaseMethod(10);
     d.BaseMethod(20);
 }