本文整理汇总了C#中IronPython.Runtime.WeakRefTracker类的典型用法代码示例。如果您正苦于以下问题:C# WeakRefTracker类的具体用法?C# WeakRefTracker怎么用?C# WeakRefTracker使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
WeakRefTracker类属于IronPython.Runtime命名空间,在下文中一共展示了WeakRefTracker类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Initialize
private WeakRefTracker _tracker; // storage for weak proxy's
private void Initialize(Struct s) {
_formatString = s._formatString;
_formats = s._formats;
_isStandardized = s._isStandardized;
_isLittleEndian = s._isLittleEndian;
_encodingCount = s._encodingCount;
_encodingSize = s._encodingSize;
_tracker = s._tracker;
}
示例2:
void IWeakReferenceable.SetFinalizer(WeakRefTracker value) {
_tracker = value;
}
示例3:
bool IWeakReferenceable.SetWeakRef(WeakRefTracker value) {
_weakRefTracker = value;
return true;
}
示例4:
void IWeakReferenceable.SetFinalizer(WeakRefTracker value) {
UserTypeOps.SetFinalizerHelper(this, value);
}
示例5:
void IWeakReferenceable.SetFinalizer(WeakRefTracker value) {
((IWeakReferenceable)this).SetWeakRef(value);
}
示例6: SetWeakRef
public bool SetWeakRef(WeakRefTracker value)
{
tracker = value;
return true;
}
示例7: SetFinalizer
public void SetFinalizer(WeakRefTracker value)
{
tracker = value;
}
示例8: EnsureDict
bool IWeakReferenceable.SetWeakRef(WeakRefTracker value) {
EnsureDict();
_dict["__weakref__"] = value;
return true;
}
示例9: EnsureDict
bool IWeakReferenceable.SetWeakRef(WeakRefTracker value) {
EnsureDict();
_dict[Symbols.WeakRef] = value;
return true;
}
示例10: SetFinalizer
public void SetFinalizer(WeakRefTracker value)
{
SetWeakRef(value);
}
示例11: SetWeakRef
public bool SetWeakRef(WeakRefTracker value) {
return Interlocked.CompareExchange(ref _tracker, value, null) == null;
}
示例12:
void IWeakReferenceable.SetFinalizer(WeakRefTracker obj0) {
UserTypeOps.SetFinalizerHelper((IPythonObject)this, obj0);
}