| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- //
- // System.CodeDom.Compiler CodeDomProvider Class implementation
- //
- // Author:
- // Daniel Stodden ([email protected])
- //
- // (C) 2002 Ximian, Inc.
- //
- using System.ComponentModel;
- using System.IO;
- namespace System.CodeDom.Compiler
- {
- [ToolboxItem("")]
- public abstract class CodeDomProvider
- : Component
- {
- //
- // Constructors
- //
- protected CodeDomProvider()
- {
- }
- //
- // Properties
- //
- public virtual string FileExtension {
- get {
- return String.Empty;
- }
- }
- public virtual LanguageOptions LanguageOptions {
- get {
- return LanguageOptions.None;
- }
- }
- //
- // Methods
- //
- public abstract ICodeCompiler CreateCompiler();
- public abstract ICodeGenerator CreateGenerator();
-
- public virtual ICodeGenerator CreateGenerator( string fileName )
- {
- return CreateGenerator();
- }
- public virtual ICodeGenerator CreateGenerator( TextWriter output )
- {
- return CreateGenerator();
- }
- public virtual ICodeParser CreateParser()
- {
- return null;
- }
- public virtual TypeConverter GetConverter( Type type )
- {
- return TypeDescriptor.GetConverter (type);
- }
- }
- }
|