The Labs \ Source Viewer \ SSCLI \ System.Text.RegularExpressions \ RegexRunnerFactory

  1. //------------------------------------------------------------------------------
  2. // <copyright file="RegexRunnerFactory.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. // This RegexRunnerFactory class is a base class for compiled regex code.
  16. // we need to compile a factory because Type.CreateInstance is much slower
  17. // than calling the constructor directly.
  18. namespace System.Text.RegularExpressions
  19. {
  20.    
  21.     using System.ComponentModel;
  22.    
  23.     /// <internalonly/>
  24.     [EditorBrowsable(EditorBrowsableState.Never)]
  25.     public abstract class RegexRunnerFactory
  26.     {
  27.         protected RegexRunnerFactory()
  28.         {
  29.         }
  30.         protected internal abstract RegexRunner CreateInstance();
  31.     }
  32.    
  33. }

Developer Fusion