12 internal string _codeDomProviderTypeName;
16 internal string[] _compilerLanguages;
18 internal string[] _compilerExtensions;
20 internal string configFileName;
24 internal int configFileLineNumber;
26 internal bool _mapped;
47 if (configFileName ==
null)
49 throw new ConfigurationErrorsException(SR.GetString(
"Unable_To_Locate_Type", _codeDomProviderTypeName,
string.Empty, 0));
51 throw new ConfigurationErrorsException(SR.GetString(
"Unable_To_Locate_Type", _codeDomProviderTypeName), configFileName, configFileLineNumber);
84 return CloneCompilerLanguages();
91 return CloneCompilerExtensions();
98 if (_providerOptions.Count > 0)
104 if (constructor !=
null)
123 if (providerOptions ==
null)
131 if (constructor !=
null)
145 return CloneCompilerParameters();
150 _compilerLanguages = compilerLanguages;
151 _compilerExtensions = compilerExtensions;
152 _codeDomProviderTypeName = codeDomProviderTypeName;
153 if (compilerParams ==
null)
157 _compilerParams = compilerParams;
160 internal CompilerInfo(CompilerParameters compilerParams,
string codeDomProviderTypeName)
162 _codeDomProviderTypeName = codeDomProviderTypeName;
163 if (compilerParams ==
null)
165 compilerParams =
new CompilerParameters();
167 _compilerParams = compilerParams;
174 return _codeDomProviderTypeName.GetHashCode();
202 return compilerParameters;
205 private string[] CloneCompilerLanguages()
207 string[] array =
new string[_compilerLanguages.Length];
208 Array.
Copy(_compilerLanguages, array, _compilerLanguages.Length);
212 private string[] CloneCompilerExtensions()
214 string[] array =
new string[_compilerExtensions.Length];
215 Array.
Copy(_compilerExtensions, array, _compilerExtensions.Length);
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
bool IsCodeDomProviderTypeValid
Returns a value indicating whether the language provider implementation is configured on the computer...
Discovers the attributes of a class constructor and provides access to constructor metadata.
bool IncludeDebugInformation
Gets or sets a value indicating whether to include debug information in the compiled executable.
string [] GetLanguages()
Gets the language names supported by the language provider.
override string ToString()
Returns a String representing the name of the current Type.
string [] GetExtensions()
Returns the file name extensions supported by the language provider.
ConstructorInfo GetConstructor(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
Searches for a constructor whose parameters match the specified argument types and modifiers,...
Represents the parameters used to invoke a compiler.
override bool Equals(object o)
Determines whether the specified object represents the same language provider and compiler settings a...
Contains methods to create types of objects locally or remotely, or obtain references to existing rem...
string CompilerOptions
Gets or sets optional command-line arguments to use when invoking the compiler.
SecurityAction
Specifies the security actions that can be performed using declarative security.
CompilerParameters CreateDefaultCompilerParameters()
Gets the configured compiler settings for the language provider implementation.
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Represents type declarations: class types, interface types, array types, value types,...
CodeDomProvider CreateProvider()
Returns a T:System.CodeDom.Compiler.CodeDomProvider instance for the current language provider settin...
int WarningLevel
Gets or sets the warning level at which the compiler aborts compilation.
override int GetHashCode()
Returns the hash code for the current instance.
bool TreatWarningsAsErrors
Gets or sets a value indicating whether to treat warnings as errors.
static object CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, object[] args, CultureInfo culture)
Creates an instance of the specified type using the constructor that best matches the specified param...
static void Copy(Array sourceArray, Array destinationArray, int length)
Copies a range of elements from an T:System.Array starting at the first element and pastes them into ...
CodeDomProvider CreateProvider(IDictionary< string, string > providerOptions)
Returns a T:System.CodeDom.Compiler.CodeDomProvider instance for the current language provider settin...
abstract object Invoke(BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
When implemented in a derived class, invokes the constructor reflected by this ConstructorInfo with t...
The exception that is thrown when a method call is invalid for the object's current state.
Provides a base class for T:System.CodeDom.Compiler.CodeDomProvider implementations....
static Type GetType(string typeName, bool throwOnError, bool ignoreCase)
Gets the T:System.Type with the specified name, specifying whether to throw an exception if the type ...
Represents the configuration settings of a language provider. This class cannot be inherited.
Type CodeDomProviderType
Gets the type of the configured T:System.CodeDom.Compiler.CodeDomProvider implementation.