2 instantiations of ComAwareWeakReference
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\ComAwareWeakReference.cs (2)
135
ComAwareWeakReference newRef = new
ComAwareWeakReference
(taggedHandle & ~HandleTagBits);
173
ComAwareWeakReference comAwareRef = new
ComAwareWeakReference
(taggedHandle & ~HandleTagBits);
24 references to ComAwareWeakReference
System.Private.CoreLib (24)
src\libraries\System.Private.CoreLib\src\System\ComAwareWeakReference.cs (8)
130
private static
ComAwareWeakReference
EnsureComAwareReference(ref nint taggedHandle)
135
ComAwareWeakReference
newRef = new ComAwareWeakReference(taggedHandle & ~HandleTagBits);
149
return Unsafe.As<
ComAwareWeakReference
>(GCHandle.InternalGet(taggedHandle & ~HandleTagBits));
153
internal static
ComAwareWeakReference
GetFromTaggedReference(nint taggedHandle)
156
return Unsafe.As<
ComAwareWeakReference
>(GCHandle.InternalGet(taggedHandle & ~HandleTagBits));
162
ComAwareWeakReference
comAwareRef = comInfo != null ?
164
Unsafe.As<
ComAwareWeakReference
>(GCHandle.InternalGet(taggedHandle & ~HandleTagBits));
173
ComAwareWeakReference
comAwareRef = new ComAwareWeakReference(taggedHandle & ~HandleTagBits);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (1)
556
ComAwareWeakReference
.InitializeCallbacks(&ComWeakRefToObject, &PossiblyComObject, &ObjectToComWeakRef);
src\libraries\System.Private.CoreLib\src\System\WeakReference.cs (8)
89
ComAwareWeakReference
.ComInfo? comInfo =
ComAwareWeakReference
.ComInfo.FromObject(target);
92
ComAwareWeakReference
.SetComInfoInConstructor(ref _taggedHandle, comInfo);
110
return
ComAwareWeakReference
.GetFromTaggedReference(th).WeakHandle;
169
ComAwareWeakReference
cwr =
ComAwareWeakReference
.GetFromTaggedReference(th);
204
var comInfo =
ComAwareWeakReference
.ComInfo.FromObject(value);
207
ComAwareWeakReference
.SetTarget(ref _taggedHandle, value, comInfo);
src\libraries\System.Private.CoreLib\src\System\WeakReference.T.cs (7)
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
ComAwareWeakReference
cwr =
ComAwareWeakReference
.GetFromTaggedReference(th);