C# Class TypeSql.VisualStudio.TypeSql

Inheritance: IVsSingleFileGenerator, IObjectWithSite
Exibir arquivo Open project: MJRichardson/TypeSql

Private Properties

Property Type Description
DetermineTargetLanguage TargetLanguage
GetCodeProvider System.CodeDom.Compiler.CodeDomProvider
GetDefaultExtension string
GetService object

Public Methods

Method Description
DefaultExtension ( string &pbstrDefaultExtension ) : int
Generate ( string wszInputFilePath, string bstrInputFileContents, string wszDefaultNamespace, IntPtr rgbOutputFileContents, uint &pcbOutput, IVsGeneratorProgress pGenerateProgress ) : int
GetSite ( System.Guid &riid, IntPtr &ppvSite ) : void
SetSite ( object pUnkSite ) : void
TypeSql ( ) : System

Protected Methods

Method Description
GetService ( Type serviceType ) : object

Method to get a service by its Type

Private Methods

Method Description
DetermineTargetLanguage ( ) : TargetLanguage
GetCodeProvider ( ) : CodeDomProvider

Returns a CodeDomProvider object for the language of the project containing the project item the generator was called on

GetDefaultExtension ( ) : string

Gets the default extension of the output file from the CodeDomProvider

GetService ( System.Guid serviceGuid ) : object

Method to get a service by its GUID

Method Details

DefaultExtension() public method

public DefaultExtension ( string &pbstrDefaultExtension ) : int
pbstrDefaultExtension string
return int

Generate() public method

public Generate ( string wszInputFilePath, string bstrInputFileContents, string wszDefaultNamespace, IntPtr rgbOutputFileContents, uint &pcbOutput, IVsGeneratorProgress pGenerateProgress ) : int
wszInputFilePath string
bstrInputFileContents string
wszDefaultNamespace string
rgbOutputFileContents System.IntPtr
pcbOutput uint
pGenerateProgress IVsGeneratorProgress
return int

GetService() protected method

Method to get a service by its Type
protected GetService ( Type serviceType ) : object
serviceType System.Type Type of service to retrieve
return object

GetSite() public method

public GetSite ( System.Guid &riid, IntPtr &ppvSite ) : void
riid System.Guid
ppvSite System.IntPtr
return void

SetSite() public method

public SetSite ( object pUnkSite ) : void
pUnkSite object
return void

TypeSql() public method

public TypeSql ( ) : System
return System