1 write to weakHandle
Microsoft.NET.StringTools.net35 (1)
WeakStringCache.cs (1)
80
weakHandle
= GCHandle.Alloc(str, GCHandleType.Weak);
8 references to weakHandle
Microsoft.NET.StringTools.net35 (8)
WeakStringCache.cs (8)
41
public bool IsUsed =>
weakHandle
.IsAllocated &&
weakHandle
.Target != null;
50
if (!
weakHandle
.IsAllocated)
55
if (
weakHandle
.Target is not string str)
74
if (
weakHandle
.IsAllocated)
76
weakHandle
.Target = str;
89
if (
weakHandle
.IsAllocated)
91
weakHandle
.Free();