Shawn,

It's been a while since your original post, but I'll have a stab, and maybe
ask a question

>2)  Do I actually have to specify the 'RegexOptions.Compiled' flag, or is
>that implied by the fact that I'm calling CompileToAssebly()?  Or is it
>simply irrelevent in this context?

Compiling to an assembly appears to produce an assembly with a single
public class that inherits from System.Text.RegularExpressions.Regex nad
basically preloads the base implementation with the relevent regex
information, including the compiled regular expresssion

The Compiled RegexOption causes a regular expression to be compiled to IL,
then JITed, with the resulting code remaining in memory for the lifetime of
the AppDomain.

My assumption is that these two pieces of functionality are separate, in
that a compiled assembly produces a class which wraps a regular expression
that can either be
a) ILed, JITed and persisted to memory, or
b) not a)

It would be great if someone could confirm or deny this assumption though

Also, am I right in that it is only possible to compile one regular
expression (class) into an assembly using CompileToAssembly()?  If so, will
subsequent versions of Regex allow compilation of 1 or more regexes
(classes) to a single assembly?

cheers,
michael w

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to