public static extern void root(ref Foo_u32 a,
                                ref Baz_i32 b,
                                ref Taz c,
                                Tazz d,
                                ref Tazzz e,
                                ref Tazzzz f,
                                ref Qux g);
Esempio n. 2
0
 public void FooFuncOrdinary(Baz ordBaz, Taz ordTaz)
 {
     barArray        = new Bar[10];
     ordTaz.tazField = this;
     ordTaz.TazBaseFunc();
     ordBaz.BazFunc();
 }
Esempio n. 3
0
        static void Main(string[] args)
        {
            Bar svar     = new Bar(null, null);
            Foo fooFirst = new Foo();
            Foo zzz;

            FreshOutFoo(out zzz);
            FreshRefFoo(ref fooFirst);
            IBaz bazArg = new Baz();
            Taz  tazArg = new Taz();

            fooFirst.FooFuncGenRef1 <IBaz, Taz>(ref bazArg, ref tazArg);
            fooFirst.FooFuncTrial(ref bazArg, ref tazArg);
            Baz bazArgOrd = bazArg as Baz;

            fooFirst.FooFuncOrdinary(bazArgOrd, tazArg);
            fooFirst.FooFuncGenRef2 <Baz, Taz>(ref bazArgOrd, ref tazArg);
            svar.objSec = fooFirst;
            Foo yyy  = svar.objSec;
            Bar rvar = svar;

            rvar = Modify(rvar);
            LocMod(rvar);
            Bar freshBar = new Bar(null, null);

            FreshBar(out freshBar);
            FreshOutFoo(out freshBar.objFir);
            FreshOutFoo(out freshBar.objSec);
        }
Esempio n. 4
0
 public void FooFuncTrial(ref IBaz bazObj, ref Taz tazObj)
 {
     tazObj.tazField = this;
     bazObj.BazFunc();
     bazObj.BazBaseFunc();
 }