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

Inheritance: BaseCodeGenerator, IObjectWithSite
Show file Open project: StevePotter/LessCssForVisualStudio

Private Properties

Property Type Description
VSOLE void
VSOLE void

Protected Methods

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

GetProject ( ) : Project

Returns the EnvDTE.Project object of the project containing the project item the code generator was called on

GetProjectItem ( ) : ProjectItem

Returns the EnvDTE.ProjectItem object that corresponds to the project item the code generator was called on

GetService ( System.Guid serviceGuid ) : object

Method to get a service by its GUID

GetService ( Type serviceType ) : object

Method to get a service by its Type

GetVSProject ( ) : VSProject

Returns the VSLangProj.VSProject object of the project containing the project item the code generator was called on

GetVSProjectItem ( ) : VSProjectItem

Returns the VSLangProj.VSProjectItem object that corresponds to the project item the code generator was called on

Private Methods

Method Description
VSOLE ( System.Guid &riid, IntPtr &ppvSite ) : void

GetSite method of IOleObjectWithSite

VSOLE ( object pUnkSite ) : void

SetSite method of IOleObjectWithSite

Method Details

GetCodeProvider() protected method

Returns a CodeDomProvider object for the language of the project containing the project item the generator was called on
protected GetCodeProvider ( ) : CodeDomProvider
return System.CodeDom.Compiler.CodeDomProvider

GetDefaultExtension() protected method

Gets the default extension of the output file from the CodeDomProvider
protected GetDefaultExtension ( ) : string
return string

GetProject() protected method

Returns the EnvDTE.Project object of the project containing the project item the code generator was called on
protected GetProject ( ) : Project
return Project

GetProjectItem() protected method

Returns the EnvDTE.ProjectItem object that corresponds to the project item the code generator was called on
protected GetProjectItem ( ) : ProjectItem
return ProjectItem

GetService() protected method

Method to get a service by its GUID
protected GetService ( System.Guid serviceGuid ) : object
serviceGuid System.Guid GUID of service to retrieve
return object

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

GetVSProject() protected method

Returns the VSLangProj.VSProject object of the project containing the project item the code generator was called on
protected GetVSProject ( ) : VSProject
return VSProject

GetVSProjectItem() protected method

Returns the VSLangProj.VSProjectItem object that corresponds to the project item the code generator was called on
protected GetVSProjectItem ( ) : VSProjectItem
return VSProjectItem