Skip to content

Commit 709adf9

Browse files
authored
Update Regex.xml to clarify what the static method means in Regex.CacheSize (#9533)
1 parent b8c1322 commit 709adf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xml/System.Text.RegularExpressions/Regex.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@
526526
<format type="text/markdown"><![CDATA[
527527

528528
## Remarks
529-
The <xref:System.Text.RegularExpressions.Regex> class maintains an internal cache of compiled regular expressions used in static method calls. If the value specified in a set operation is less than the current cache size, cache entries are discarded until the cache size is equal to the specified value.
529+
The <xref:System.Text.RegularExpressions.Regex> class maintains an internal cache of compiled regular expressions used in static <xref:System.Text.RegularExpressions.Regex> method calls, such as <xref:System.Text.RegularExpressions.Regex.Match%2A> or <xref:System.Text.RegularExpressions.Regex.Replace%2A>. If the value specified in a set operation is less than the current cache size, cache entries are discarded until the cache size is equal to the specified value.
530530

531531
By default, the cache holds 15 compiled static regular expressions. Your application typically will not have to modify the size of the cache. Use the <xref:System.Text.RegularExpressions.Regex.CacheSize%2A> property only when you want to turn off caching or when you have an unusually large cache.
532532

0 commit comments

Comments
 (0)