Compiled regex in beta 2
Is this a change in the way GetAssemblies works, or in the way compiled regexes work?
Is this a change in the way GetAssemblies works, or in the way compiled regexes work?
This is a change in the way compiled regexes work since Whidbey Beta2.
Regular expressions have been switched to use lightweight code generation.
This does not change the contract functionality of regular expressions, but enables better performance when creating Regex objects which are compiled to in-memory IL. The main code path won't actually generate a dynamic assembly anymore, so your call to GetAssembles won't display a new assembly.
The new Regex.CompileToAssembly member will compile a regex into a dynamic assembly visibly to AppDomain.GetAssemblies, however.
Thanks.