System.CodeDom.Compiler.CompilerInfo.GetExtensions Method

Returns the file name extensions supported by the language provider.

Syntax

public string[] GetExtensions ()

Returns

An array of file name extensions supported by the language provider.

Remarks

The <system.codedom> Element in the machine configuration file contains the language provider and compiler configuration settings for each System.CodeDom.Compiler.CodeDomProvider implementation on the computer. Each configured language provider supports one or more file name extensions. For example, a Microsoft.CSharp.CSharpCodeProvider might support the file name extensions ".cs" and ".c#".

Requirements

Namespace: System.CodeDom.Compiler
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0