13 instantiations of InternableString
Microsoft.NET.StringTools.net35 (2)
SpanBasedStringBuilder.Simple.cs (1)
110return new InternableString(this).ToString();
StringTools.cs (1)
37InternableString internableString = new InternableString(str);
Microsoft.NET.StringTools.net35.UnitTests (11)
SpanBasedStringBuilder_Tests.cs (7)
76InternableString internableString = new InternableString(stringBuilder); 97InternableString internableString = new InternableString(str); 99internableString = new InternableString(new string(str.ToCharArray())); 108int hashCode = new InternableString(testString).GetHashCode(); 119InternableString internableString = new InternableString(stringBuilder); 130new InternableString(stringBuilder).ExpensiveConvertToString().ShouldBe(datum.ToString()); 138new InternableString(stringBuilder).ExpensiveConvertToString().ShouldBe(datum.ToString());
WeakStringCache_Tests.cs (4)
48InternableString testStringTarget = new InternableString(testString); 60InternableString testStringCopyTarget = new InternableString(testStringCopy); 70testStringCopyTarget = new InternableString(testStringCopy); 110InternableString stringCopy = new InternableString(new string(cachedStrings[i].ToCharArray()));
13 references to InternableString
Microsoft.NET.StringTools.net35 (7)
InternableString.Simple.cs (2)
44private InternableString _string; 51public Enumerator(InternableString spanBuilder)
StringTools.cs (1)
37InternableString internableString = new InternableString(str);
WeakStringCache.cs (1)
48public string? GetString(ref InternableString internable)
WeakStringCache.Locking.cs (1)
29public string GetOrCreateEntry(ref InternableString internable, out bool cacheHit)
WeakStringCacheInterner.cs (2)
67private InternResult Intern(ref InternableString candidate, out string interned) 76public string InternableToString(ref InternableString candidate)
Microsoft.NET.StringTools.net35.UnitTests (6)
SpanBasedStringBuilder_Tests.cs (3)
76InternableString internableString = new InternableString(stringBuilder); 97InternableString internableString = new InternableString(str); 119InternableString internableString = new InternableString(stringBuilder);
WeakStringCache_Tests.cs (3)
48InternableString testStringTarget = new InternableString(testString); 60InternableString testStringCopyTarget = new InternableString(testStringCopy); 110InternableString stringCopy = new InternableString(new string(cachedStrings[i].ToCharArray()));