C# Class Microsoft.Samples.VisualStudio.GeneratorSample.LessCss

Inheritance: BaseCodeGeneratorWithSite
Afficher le fichier Open project: StevePotter/LessCssForVisualStudio

Private Properties

Свойство Type Description
ConvertToBytes byte[]
ExtractEmbeddedResource bool>.Tuple

Méthodes publiques

Méthode Description
CopyStream ( Stream input, Stream output ) : void

Méthodes protégées

Méthode Description
GenerateCode ( string inputFileContent ) : byte[]

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

GetDefaultExtension ( ) : string

Private Methods

Méthode Description
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.

Method Details

CopyStream() public static méthode

public static CopyStream ( Stream input, Stream output ) : void
input Stream
output Stream
Résultat void

GenerateCode() protected méthode

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
Résultat byte[]

GetDefaultExtension() protected méthode

protected GetDefaultExtension ( ) : string
Résultat string