CSharpCodeProvider Members
.NET Framework 2.0
Provides access to instances of the C# code generator and code compiler.
The following tables list the members exposed by the CSharpCodeProvider type.
(see also
Protected Properties
)
Top
| Name | Description | |
|---|---|---|
| Container | Gets the IContainer that contains the Component.(Inherited from Component.) |
| FileExtension | Overridden. Gets the file name extension to use when creating source code files. |
| LanguageOptions | Gets a language features identifier.(Inherited from CodeDomProvider.) |
| Site | Gets or sets the ISite of the Component.(Inherited from Component.) |
| Name | Description | |
|---|---|---|
| CanRaiseEvents | Gets a value indicating whether the component can raise an event.(Inherited from Component.) |
| DesignMode | Gets a value that indicates whether the Component is currently in design mode.(Inherited from Component.) |
| Events | Gets the list of event handlers that are attached to this Component.(Inherited from Component.) |
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| CompileAssemblyFromDom | Compiles an assembly based on the System.CodeDom trees contained in the specified array of CodeCompileUnit objects, using the specified compiler settings. (Inherited from CodeDomProvider.) |
| CompileAssemblyFromFile | Compiles an assembly from the source code contained in the specified files, using the specified compiler settings. (Inherited from CodeDomProvider.) |
| CompileAssemblyFromSource | Compiles an assembly from the specified array of strings containing source code, using the specified compiler settings. (Inherited from CodeDomProvider.) |
| CreateCompiler | Overridden. Gets an instance of the C# code compiler. |
| CreateEscapedIdentifier | Creates an escaped identifier for the specified value. (Inherited from CodeDomProvider.) |
| CreateGenerator | Overloaded. Overridden. Gets an instance of the C# code generator. |
| CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
| CreateParser | When overridden in a derived class, creates a new code parser. (Inherited from CodeDomProvider.) |
| CreateProvider | Gets a CodeDomProvider instance for the specified language. (Inherited from CodeDomProvider.) |
| CreateValidIdentifier | Creates a valid identifier for the specified value. (Inherited from CodeDomProvider.) |
| Dispose | Overloaded. Releases the resources used by the Component. (Inherited from Component.) |
| Equals | Overloaded. Determines whether two Object instances are equal. (Inherited from Object.) |
| GenerateCodeFromCompileUnit | Generates code for the specified Code Document Object Model (CodeDOM) compilation unit and sends it to the specified text writer, using the specified options. (Inherited from CodeDomProvider.) |
| GenerateCodeFromExpression | Generates code for the specified Code Document Object Model (CodeDOM) expression and sends it to the specified text writer, using the specified options. (Inherited from CodeDomProvider.) |
| GenerateCodeFromMember | Overridden. Generates code for the specified class member using the specified text writer and code generator options. |
| GenerateCodeFromNamespace | Generates code for the specified Code Document Object Model (CodeDOM) namespace and sends it to the specified text writer, using the specified options. (Inherited from CodeDomProvider.) |
| GenerateCodeFromStatement | Generates code for the specified Code Document Object Model (CodeDOM) statement and sends it to the specified text writer, using the specified options. (Inherited from CodeDomProvider.) |
| GenerateCodeFromType | Generates code for the specified Code Document Object Model (CodeDOM) type declaration and sends it to the specified text writer, using the specified options. (Inherited from CodeDomProvider.) |
| GetAllCompilerInfo | Returns the language provider and compiler configuration settings for this computer. (Inherited from CodeDomProvider.) |
| GetCompilerInfo | Returns the language provider and compiler configuration settings for the specified language. (Inherited from CodeDomProvider.) |
| GetConverter | Overridden. Gets a TypeConverter for the specified type of object. |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
| GetLanguageFromExtension | Returns a language name associated with the specified file name extension, as configured in the CodeDomProvider compiler configuration section. (Inherited from CodeDomProvider.) |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
| GetType | Gets the Type of the current instance. (Inherited from Object.) |
| GetTypeOutput | Gets the type indicated by the specified CodeTypeReference. (Inherited from CodeDomProvider.) |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
| IsDefinedExtension | Tests whether a file name extension has an associated CodeDomProvider implementation configured on the computer. (Inherited from CodeDomProvider.) |
| IsDefinedLanguage | Tests whether a language has a CodeDomProvider implementation configured on the computer. (Inherited from CodeDomProvider.) |
| IsValidIdentifier | Returns a value that indicates whether the specified value is a valid identifier for the current language. (Inherited from CodeDomProvider.) |
| Parse | Compiles the code read from the specified text stream into a CodeCompileUnit. (Inherited from CodeDomProvider.) |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object.) |
| Supports | Returns a value indicating whether the specified code generation support is provided. (Inherited from CodeDomProvider.) |
| ToString | Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.) |
| Name | Description | |
|---|---|---|
| Dispose | Overloaded. Releases the resources used by the Component. (Inherited from Component.) |
| Finalize | Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.) |
| GetService | Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.) |
| MemberwiseClone | Overloaded. (Inherited from MarshalByRefObject.) |