Compiles one or more specified System.Text.RegularExpressions.Regex objects to a named assembly.
- regexes
- Documentation for this section has not yet been entered.
- aname
- Documentation for this section has not yet been entered.
The Regex.CompileToAssembly(RegexCompilationInfo[], System.Reflection.AssemblyName) method generates a .NET Framework assembly in which each regular expression defined in the regexinfos array is represented by a class. Typically, the Regex.CompileToAssembly(RegexCompilationInfo[], System.Reflection.AssemblyName) method is called from a separate application that generates an assembly of compiled regular expressions. Each regular expression included in the assembly has the following characteristics:
It is derived from the System.Text.RegularExpressions.Regex class.
It is assigned the fully qualified name that is defined by the fullnamespace and name parameters of its corresponding System.Text.RegularExpressions.RegexCompilationInfo object.
It has a default (or parameterless) constructor.
Ordinarily, the code that instantiates and uses the compiled regular expression is found in an assembly or application that is separate from the code that creates the assembly.