C# Class NAnt.DotNet.Tasks.AssemblyInfoTask.CodeProvider

Encapsulates functionality to generate a code file with imports and assembly-level attributes.
Exibir arquivo Open project: skolima/NAnt

Private Properties

Property Type Description
GetTypedValue object

Public Methods

Method Description
CodeProvider ( AssemblyInfoTask assemblyInfoTask, CodeLanguage codeLanguage ) : System.Security

Initializes a new instance of the CodeProvider for the specified CodeLanguage.

GenerateAssemblyAttributesCode ( NAnt.DotNet.Types.AssemblyAttributeCollection assemblyAttributes, StringCollection imports, StringCollection assemblies, TextWriter writer ) : void

Generates code for the specified assembly attributes.

GenerateImportCode ( StringCollection imports, TextWriter writer ) : void

Generates code for the specified imports.

Private Methods

Method Description
GetTypedValue ( AssemblyAttribute attribute, StringCollection assemblies, StringCollection imports ) : object

Method Details

CodeProvider() public method

Initializes a new instance of the CodeProvider for the specified CodeLanguage.
public CodeProvider ( AssemblyInfoTask assemblyInfoTask, CodeLanguage codeLanguage ) : System.Security
assemblyInfoTask AssemblyInfoTask The for which an instance of the class should be initialized.
codeLanguage CodeLanguage The for which an instance of the class should be initialized.
return System.Security

GenerateAssemblyAttributesCode() public method

Generates code for the specified assembly attributes.
public GenerateAssemblyAttributesCode ( NAnt.DotNet.Types.AssemblyAttributeCollection assemblyAttributes, StringCollection imports, StringCollection assemblies, TextWriter writer ) : void
assemblyAttributes NAnt.DotNet.Types.AssemblyAttributeCollection The assembly attributes for which code should be generated.
imports System.Collections.Specialized.StringCollection Imports used to resolve the assembly attribute names to fully qualified type names.
assemblies System.Collections.Specialized.StringCollection Assembly that will be used to resolve the attribute names to instances.
writer System.IO.TextWriter The to which the generated code will be written.
return void

GenerateImportCode() public method

Generates code for the specified imports.
public GenerateImportCode ( StringCollection imports, TextWriter writer ) : void
imports System.Collections.Specialized.StringCollection The imports for which code should be generated.
writer System.IO.TextWriter The to which the generated code will be written.
return void