C# Класс Microsoft.Samples.VisualStudio.GeneratorSample.LessCss

Наследование: BaseCodeGeneratorWithSite
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
ConvertToBytes byte[]
ExtractEmbeddedResource bool>.Tuple

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

Метод Описание
CopyStream ( Stream input, Stream output ) : void

Защищенные методы

Метод Описание
GenerateCode ( string inputFileContent ) : byte[]

Function that builds the contents of the generated file based on the contents of the input file

GetDefaultExtension ( ) : string

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

Метод Описание
ConvertToBytes ( string content ) : byte[]

Takes the file contents and converts them to a byte[] that VS can use to update generated code.

ExtractEmbeddedResource ( string fileName ) : bool>.Tuple

If the file doesn't already exist, this extracts it from the assemble manifest and saves it as a file.

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

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

public static CopyStream ( Stream input, Stream output ) : void
input Stream
output Stream
Результат void

GenerateCode() защищенный Метод

Function that builds the contents of the generated file based on the contents of the input file
protected GenerateCode ( string inputFileContent ) : byte[]
inputFileContent string Content of the input file
Результат byte[]

GetDefaultExtension() защищенный Метод

protected GetDefaultExtension ( ) : string
Результат string