public static void Entry() { var cls = new Derived <long>(); Inf <int, long> inf = cls; inf.Foo(123); inf.Foo(123, 456L); }
private static T EntryT <T>(T bla) { var cls = new Derived <T, ushort>(); Inf <int, T> inf = cls; T t = bla; inf.Foo(123); inf.Foo(123, t, ""); return(bla); }
public static unsafe void Entry() { char *[] cc = null; int *[] ii = null; short *[] ss = null; var cls = new Sub2(); cls.Foo(cc, ii); cls.Foo(cc, ss); Inf <int *[]> inf = cls; inf.Foo(cc, ii); Inf2 <short *[]> inf2 = cls; inf2.Foo(cc, ss); var cls2 = new Cls <long *[]>(); Sub1 <int *[]> s1 = cls; s1.Foo(cc, ii); s1.Foo(cc, ss); new Cls <int *[]>(); }
public static void Entry() { var c = new Cls <int, int>(); Inf <int, int> i = c; i.Foo(c); }
public static void Entry() { Inf <long> i = new Cls(); i.Foo(1.2f, (long)999999); Inf <char> i2 = null; i2.Foo(1234, 'a'); }
public static int Entry() { char *[] cc = new char *[1]; int *[] ii = new int *[1]; short *[] ss = new short *[1]; var cls = new Sub2(); cls.Foo(cc, ii); if (path != 1) { return(1); } cls.Foo(cc, ss); if (path != 2) { return(2); } Inf <int *[]> inf = cls; inf.Foo(cc, ii); if (path != 1) { return(3); } Inf2 <short *[]> inf2 = cls; inf2.Foo(cc, ss); if (path != 2) { return(4); } var cls2 = new Cls <long *[]>(); Sub1 <int *[]> s1 = cls; s1.Foo(cc, ii); if (path != 1) { return(5); } s1.Foo(cc, ss); if (path != 2) { return(6); } new Cls <int *[]>(); return(0); }
public static void Entry() { Inf inf = null; inf.Foo(); }
private static int Bla(Inf inf) { return(inf.Foo()); }