C# Класс Deeply.Tools.SsisMetadataToClass.ClassWriter

Class writer definition.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
WriteBeginClass void
WriteBeginNamespace void
WriteEndClass void
WriteEndNamespace void
WriteHeader void
WriteMetadata void
WriteProperty void
WriteUsing void

Открытые методы

Метод Описание
ClassWriter ( Options options, TextWriter output, string headerFormat ) : System

Initializes a new instance of the ClassWriter class.

Write ( IEnumerable metadata ) : void

Writes the current sequence to the specified output.

Write ( Options options, IEnumerable metadata, TextWriter output ) : void

Helper function to setup the class and write the output.

Приватные методы

Метод Описание
WriteBeginClass ( string className ) : void

Writes a begin class definition.

WriteBeginNamespace ( string namespaceName ) : void

Writes a begin namespace.

WriteEndClass ( ) : void

Writes the end of class.

WriteEndNamespace ( ) : void

Writes the end namespace.

WriteHeader ( string className ) : void

Writes the file header.

WriteMetadata ( IEnumerable metadata ) : void

Writes the metadata as class properties.

WriteProperty ( SsisMetadata item ) : void

Writes a single property.

WriteUsing ( ) : void

Writes the using statements.

Описание методов

ClassWriter() публичный Метод

Initializes a new instance of the ClassWriter class.
public ClassWriter ( Options options, TextWriter output, string headerFormat ) : System
options Options Output options.
output System.IO.TextWriter Output writer to send class to.
headerFormat string Header format text.
Результат System

Write() публичный Метод

Writes the current sequence to the specified output.
public Write ( IEnumerable metadata ) : void
metadata IEnumerable Sequence of metadata to write.
Результат void

Write() публичный статический Метод

Helper function to setup the class and write the output.
public static Write ( Options options, IEnumerable metadata, TextWriter output ) : void
options Options Output options.
metadata IEnumerable Sequence of metadata to write.
output System.IO.TextWriter Output writer to send class to.
Результат void