95 references to StringBuilderCache
mscorlib (95)
microsoft\win32\win32native.cs (3)
743
StringBuilder sb =
StringBuilderCache
.Acquire(512);
749
return
StringBuilderCache
.GetStringAndRelease(sb);
752
StringBuilderCache
.Release(sb);
system\appdomain.cs (6)
845
StringBuilder conditionalAptcaListBuilder =
StringBuilderCache
.Acquire();
858
canonicalConditionalAptcaList =
StringBuilderCache
.GetStringAndRelease(conditionalAptcaListBuilder);
2215
StringBuilder sb =
StringBuilderCache
.Acquire();
2235
return
StringBuilderCache
.GetStringAndRelease(sb);
2284
StringBuilder appendPath =
StringBuilderCache
.Acquire();
2295
String result =
StringBuilderCache
.GetStringAndRelease(appendPath);
system\AppDomainSetup.cs (6)
434
StringBuilder result =
StringBuilderCache
.Acquire();
480
path =
StringBuilderCache
.GetStringAndRelease(result);
871
StringBuilder newPath =
StringBuilderCache
.Acquire();
885
String newString =
StringBuilderCache
.GetStringAndRelease(newPath);
1407
StringBuilder result =
StringBuilderCache
.Acquire();
1435
return
StringBuilderCache
.GetStringAndRelease(result);
system\applicationid.cs (2)
92
StringBuilder sb =
StringBuilderCache
.Acquire();
112
return
StringBuilderCache
.GetStringAndRelease(sb);
system\bcldebug.cs (6)
255
StringBuilder sb =
StringBuilderCache
.Acquire();
270
System.Diagnostics.Log.LogMessage((LoggingLevels)((int)level), logSwitch,
StringBuilderCache
.GetStringAndRelease(sb));
288
StringBuilder sb =
StringBuilderCache
.Acquire();
305
System.Diagnostics.Log.LogMessage(LoggingLevels.TraceLevel0, logSwitch,
StringBuilderCache
.GetStringAndRelease(sb));
321
StringBuilder sb =
StringBuilderCache
.Acquire();
325
System.Diagnostics.Log.LogMessage(LoggingLevels.TraceLevel0, logSwitch,
StringBuilderCache
.GetStringAndRelease(sb));
system\collections\generic\keyvaluepair.cs (2)
44
StringBuilder s =
StringBuilderCache
.Acquire();
54
return
StringBuilderCache
.GetStringAndRelease(s);
system\environment.cs (3)
631
StringBuilder blob =
StringBuilderCache
.Acquire(128); // A somewhat reasonable default size
636
StringBuilderCache
.Release(blob);
646
return
StringBuilderCache
.GetStringAndRelease(blob);
system\globalization\datetimeformat.cs (6)
438
StringBuilder result =
StringBuilderCache
.Acquire();
711
return
StringBuilderCache
.GetStringAndRelease(result);
970
return
StringBuilderCache
.GetStringAndRelease(FastFormatRoundtrip(dateTime, offset));
973
return
StringBuilderCache
.GetStringAndRelease(FastFormatRfc1123(dateTime, offset, dtfi));
986
StringBuilder result =
StringBuilderCache
.Acquire(Rfc1123FormatLength);
1017
StringBuilder result =
StringBuilderCache
.Acquire(roundTripFormatLength);
system\globalization\timespanformat.cs (6)
72
StringBuilder sb =
StringBuilderCache
.Acquire();
135
return
StringBuilderCache
.GetStringAndRelease(sb);
165
StringBuilder result =
StringBuilderCache
.Acquire();
284
return
StringBuilderCache
.GetStringAndRelease(result);
365
StringBuilder sb =
StringBuilderCache
.Acquire();
474
StringBuilderCache
.Release(sb);
system\io\binaryreader.cs (2)
290
sb =
StringBuilderCache
.Acquire(stringLength); // Actual string length in chars may be smaller.
296
return
StringBuilderCache
.GetStringAndRelease(sb);
system\io\directory.cs (2)
1108
StringBuilder sb =
StringBuilderCache
.Acquire(PathInternal.MaxShortPath + 1);
1131
StringBuilderCache
.Release(sb);
system\io\path.cs (4)
1265
StringBuilder finalPath =
StringBuilderCache
.Acquire(finalSize);
1284
return
StringBuilderCache
.GetStringAndRelease(finalPath);
1315
StringBuilder sb =
StringBuilderCache
.Acquire();
1364
return
StringBuilderCache
.GetStringAndRelease(sb);
system\io\pathinternal.cs (2)
614
StringBuilder builder =
StringBuilderCache
.Acquire(path.Length);
642
return
StringBuilderCache
.GetStringAndRelease(builder);
system\runtime\remoting\soap.cs (2)
769
StringBuilder sb =
StringBuilderCache
.Acquire(256);
785
return
StringBuilderCache
.GetStringAndRelease(sb);
system\runtime\serialization\formatters\binary\binaryobjectreader.cs (2)
1321
StringBuilder sb =
StringBuilderCache
.Acquire(10);
1330
SerTrace.Log( this, message," ",
StringBuilderCache
.GetStringAndRelease(sb));
system\runtime\serialization\formatters\binary\binaryobjectwriter.cs (2)
1034
StringBuilder sb =
StringBuilderCache
.Acquire(10);
1043
SerTrace.Log( this, message+" ",
StringBuilderCache
.GetStringAndRelease(sb));
system\security\util\urlstring.cs (4)
125
StringBuilder intermediate =
StringBuilderCache
.Acquire(url.Length);
201
return
StringBuilderCache
.GetStringAndRelease(intermediate);
989
StringBuilder builtUrl =
StringBuilderCache
.Acquire();
1005
return
StringBuilderCache
.GetStringAndRelease(builtUrl).ToUpper(CultureInfo.InvariantCulture);
system\security\util\xmlutil.cs (2)
690
StringBuilder result =
StringBuilderCache
.Acquire();
715
return
StringBuilderCache
.GetStringAndRelease(result);
system\string.cs (12)
103
StringBuilder result =
StringBuilderCache
.Acquire();
118
return
StringBuilderCache
.GetStringAndRelease(result);
135
StringBuilder result =
StringBuilderCache
.Acquire();
154
return
StringBuilderCache
.GetStringAndRelease(result);
175
StringBuilder result =
StringBuilderCache
.Acquire();
186
return
StringBuilderCache
.GetStringAndRelease(result);
3020
return
StringBuilderCache
.GetStringAndRelease(
3021
StringBuilderCache
3151
StringBuilder result =
StringBuilderCache
.Acquire();
3163
return
StringBuilderCache
.GetStringAndRelease(result);
3174
StringBuilder result =
StringBuilderCache
.Acquire();
3182
return
StringBuilderCache
.GetStringAndRelease(result);
system\text\stringbuildercache.cs (3)
54
StringBuilder sb =
StringBuilderCache
.CachedInstance;
61
StringBuilderCache
.CachedInstance = null;
74
StringBuilderCache
.CachedInstance = sb;
system\timezoneinfo.cs (10)
2611
StringBuilder fileMuiPath =
StringBuilderCache
.Acquire(Win32Native.MAX_PATH);
2622
StringBuilderCache
.Release(fileMuiPath);
2625
return TryGetLocalizedNameByNativeResource(
StringBuilderCache
.GetStringAndRelease(fileMuiPath), resourceId);
2651
StringBuilder localizedResource =
StringBuilderCache
.Acquire(Win32Native.LOAD_STRING_MAX_LENGTH);
2658
return
StringBuilderCache
.GetStringAndRelease(localizedResource);
3564
StringBuilder serializedText =
StringBuilderCache
.Acquire();
3609
return
StringBuilderCache
.GetStringAndRelease(serializedText);
3809
StringBuilder token =
StringBuilderCache
.Acquire(initialCapacityForString);
3850
return
StringBuilderCache
.GetStringAndRelease(token);
3875
return
StringBuilderCache
.GetStringAndRelease(token);
system\typenameparser.cs (2)
311
StringBuilder sb =
StringBuilderCache
.Acquire();
320
return
StringBuilderCache
.GetStringAndRelease(sb);
system\version.cs (6)
292
sb =
StringBuilderCache
.Acquire();
296
return
StringBuilderCache
.GetStringAndRelease(sb);
303
sb =
StringBuilderCache
.Acquire();
309
return
StringBuilderCache
.GetStringAndRelease(sb);
317
sb =
StringBuilderCache
.Acquire();
325
return
StringBuilderCache
.GetStringAndRelease(sb);