2 instantiations of ComAwareWeakReference
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\ComAwareWeakReference.cs (2)
132
ComAwareWeakReference newRef = new
ComAwareWeakReference
(taggedHandle & ~HandleTagBits);
176
ComAwareWeakReference comAwareRef = new
ComAwareWeakReference
(taggedHandle & ~HandleTagBits);
21 references to ComAwareWeakReference
System.Private.CoreLib (21)
src\libraries\System.Private.CoreLib\src\System\ComAwareWeakReference.cs (8)
127
private static
ComAwareWeakReference
EnsureComAwareReference(ref nint taggedHandle)
132
ComAwareWeakReference
newRef = new ComAwareWeakReference(taggedHandle & ~HandleTagBits);
146
return Unsafe.As<
ComAwareWeakReference
>(GCHandle.InternalGet(taggedHandle & ~HandleTagBits));
153
return Unsafe.As<
ComAwareWeakReference
>(GCHandle.InternalGet(taggedHandle & ~HandleTagBits)).Target;
159
return Unsafe.As<
ComAwareWeakReference
>(GCHandle.InternalGet(taggedHandle & ~HandleTagBits))._weakHandle;
165
ComAwareWeakReference
comAwareRef = comInfo != null ?
167
Unsafe.As<
ComAwareWeakReference
>(GCHandle.InternalGet(taggedHandle & ~HandleTagBits));
176
ComAwareWeakReference
comAwareRef = new ComAwareWeakReference(taggedHandle & ~HandleTagBits);
src\libraries\System.Private.CoreLib\src\System\WeakReference.cs (7)
89
ComAwareWeakReference
.ComInfo? comInfo =
ComAwareWeakReference
.ComInfo.FromObject(target);
92
ComAwareWeakReference
.SetComInfoInConstructor(ref _taggedHandle, comInfo);
110
return
ComAwareWeakReference
.GetWeakHandle(th);
165
target =
ComAwareWeakReference
.GetTarget(th);
194
var comInfo =
ComAwareWeakReference
.ComInfo.FromObject(value);
197
ComAwareWeakReference
.SetTarget(ref _taggedHandle, value, comInfo);
src\libraries\System.Private.CoreLib\src\System\WeakReference.T.cs (6)
89
ComAwareWeakReference
.ComInfo? comInfo =
ComAwareWeakReference
.ComInfo.FromObject(target);
92
ComAwareWeakReference
.SetComInfoInConstructor(ref _taggedHandle, comInfo);
108
var comInfo =
ComAwareWeakReference
.ComInfo.FromObject(target);
111
ComAwareWeakReference
.SetTarget(ref _taggedHandle, target, comInfo);
144
target = Unsafe.As<T?>(
ComAwareWeakReference
.GetTarget(th));