Exemplo n.º 1
0
 protected override Delegate MakeDelegate(int version, Delegate newDlg, LateBoundInitBinder initBinder)
 {
     return(new Func <CallSite, CodeContext, object, object>(
                new FastTypeSite(
                    version,
                    (Func <CodeContext, object, object>)newDlg,
                    initBinder
                    ).CallTarget
                ));
 }
Exemplo n.º 2
0
 public FastTypeSite(int version, Func <CodeContext, object, object> @new, LateBoundInitBinder initBinder)
 {
     _version  = version;
     _new      = @new;
     _initSite = CallSite <Func <CallSite, CodeContext, object, object> > .Create(initBinder);
 }
Exemplo n.º 3
0
 protected abstract Delegate MakeDelegate(int version, Delegate newDlg, LateBoundInitBinder initBinder);