1 //------------------------------------------------------------------------------
2 // <copyright file="RegexRunnerFactory.cs" company="Microsoft">
3 //     Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>
5 //------------------------------------------------------------------------------
6 
7 // This RegexRunnerFactory class is a base class for compiled regex code.
8 // we need to compile a factory because Type.CreateInstance is much slower
9 // than calling the constructor directly.
10 
11 namespace System.Text.RegularExpressions {
12 
13     using System.ComponentModel;
14 
15 #if !SILVERLIGHT
16     /// <internalonly/>
17     [ EditorBrowsable(EditorBrowsableState.Never) ]
18 #endif
19 #if !SILVERLIGHT
20     abstract public class RegexRunnerFactory {
21 #else
22     abstract internal class RegexRunnerFactory {
23 #endif
RegexRunnerFactory()24         protected RegexRunnerFactory() {}
CreateInstance()25         abstract protected internal RegexRunner CreateInstance();
26     }
27 
28 }
29 
30