Compiling Regular Expressions To Assemblies
RegexDesigner.NET provides the ability for you to Compile a regular expression to a .NET assembly, and reference it from you application(s). This can be useful where you need to reuse a business-specific regular expression across one or more applications. Compiled assemblies are also a great way to encapsulate complex and/or large regular expressions.
To compile a regular expression to an assembly
- To open the Compile To Assembly dialog, do one of the following:
- On the Regex menu, click Compile To Assembly...
- On the toolbar, click the Compile To Assembly button.
- Press CTRL-SHIFT-B.
- To enter the Assembly File Name, you can either:
- Type the folder and file name directly into the Assembly File Name text box, or
- Click the Browse button to navigate to a folder and enter a filename
- Enter the Namespace and Class names, and select a Protection level.
- Click OK to create the assembly.
See Also
Generating Code