Ejemplo n.º 1
0
 public @ref(object @object, object callback)
 {
     WeakRefHelpers.InitializeWeakRef(this, @object, callback);
     this._target = new WeakHandle(@object, false);
 }
Ejemplo n.º 2
0
 private weakproxy(CodeContext /*!*/ context, object target, object callback)
 {
     WeakRefHelpers.InitializeWeakRef(PythonContext.GetContext(context), this, target, callback);
     _target  = new WeakHandle(target, false);
     _context = context;
 }
Ejemplo n.º 3
0
 private weakcallableproxy(CodeContext context, object target, object callback)
 {
     WeakRefHelpers.InitializeWeakRef(context.LanguageContext, this, target, callback);
     _target  = new WeakHandle(target, false);
     _context = context;
 }
Ejemplo n.º 4
0
 public @ref(CodeContext context, object @object, object callback)
 {
     this._context = context;
     WeakRefHelpers.InitializeWeakRef(this._context.GetPythonContext(), this, @object, callback);
     this._target = new WeakHandle(@object, false);
 }