0
Vote

Rule Idea: Regex: Use RegexOptions.Compiled properly.

description

Use it for Regex instances which are created in static readonly fields
Use it for Regex instances which are always created with the same arguments
Use it for Regex.StaticMethods which are alwayd called with the same arguments
 
Don't use it for Regex instances which receive a parameter
Don't use it for Regex.StaticMethods which receive a parameter

comments

jessehouwing wrote Dec 1, 2011 at 10:04 PM

The DO use rules have been implemented.

wrote Feb 13, 2013 at 10:47 PM