1 write to WeakHandle
Microsoft.NET.StringTools (1)
WeakStringCache.cs (1)
95
WeakHandle
= GCHandle.Alloc(str, GCHandleType.Weak);
9 references to WeakHandle
Microsoft.NET.StringTools (9)
WeakStringCache.cs (9)
48
public bool IsUsed => referencedString is not null ||
WeakHandle
.Target != null;
63
if (!
WeakHandle
.IsAllocated)
68
if (
WeakHandle
.Target is not string str)
89
if (
WeakHandle
.IsAllocated)
91
WeakHandle
.Target = str;
102
if (
WeakHandle
.IsAllocated)
104
WeakHandle
.Target = null;
116
if (
WeakHandle
.IsAllocated)
118
WeakHandle
.Free();