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

Inheritance: BaseCodeGeneratorWithSite
Mostra file Open project: StevePotter/LessCssForVisualStudio

Private Properties

Property Type Description
ConvertToBytes byte[]
ExtractEmbeddedResource bool>.Tuple

Public Methods

Method Description
CopyStream ( Stream input, Stream output ) : void

Protected Methods

Method 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

Method 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 method

public static CopyStream ( Stream input, Stream output ) : void
input Stream
output Stream
return void

GenerateCode() protected method

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
return byte[]

GetDefaultExtension() protected method

protected GetDefaultExtension ( ) : string
return string