Beispiel #1
0
 public static void CompileToAssembly(RegexCompilationInfo [] regexes, AssemblyName aname,
                                      CustomAttributeBuilder [] attribs)
 {
     Regex.CompileToAssembly(regexes, aname, attribs, null);
 }
Beispiel #2
0
 /// <summary>
 /// Compile a enumeration into a Assembly file (.dll)
 /// </summary>
 /// <param name="assemblyName"></param>
 /// <param name="compilationInfos"></param>
 static public CompiledRegex CompileToAssembly(AssemblyName assemblyName, IEnumerable <RegexCompilationInfo> compilationInfos)
 {
     Regex.CompileToAssembly(compilationInfos.ToArray(), assemblyName);
     return(LoadFromAssembly(Assembly.Load(assemblyName)));
 }