C# 클래스 NAnt.DotNet.Tasks.AssemblyInfoTask.CodeProvider

Encapsulates functionality to generate a code file with imports and assembly-level attributes.
파일 보기 프로젝트 열기: skolima/NAnt

Private Properties

프로퍼티 타입 설명
GetTypedValue object

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
GetTypedValue ( AssemblyAttribute attribute, StringCollection assemblies, StringCollection imports ) : object

메소드 상세

CodeProvider() 공개 메소드

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.
리턴 System.Security

GenerateAssemblyAttributesCode() 공개 메소드

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.
리턴 void

GenerateImportCode() 공개 메소드

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.
리턴 void