1 write to WeakHandle
Microsoft.NET.StringTools (1)
WeakStringCache.cs (1)
93
WeakHandle
= GCHandle.Alloc(str, GCHandleType.Weak);
9 references to WeakHandle
Microsoft.NET.StringTools (9)
WeakStringCache.cs (9)
46
public bool IsUsed => referencedString is not null ||
WeakHandle
.Target != null;
60
if (!
WeakHandle
.IsAllocated)
65
if (
WeakHandle
.Target is not string str)
87
if (
WeakHandle
.IsAllocated)
89
WeakHandle
.Target = str;
100
if (
WeakHandle
.IsAllocated)
102
WeakHandle
.Target = null;
114
if (
WeakHandle
.IsAllocated)
116
WeakHandle
.Free();