C# Class NinjaCoder.MvvmCross.Factories.BaseTextTemplateFactory

Defines the BaseTextTemplateFactory type.
显示文件 Open project: asudbury/NinjaCoderForMvvmCross

Protected Properties

Property Type Description
SettingsService ISettingsService

Protected Methods

Method Description
BaseTextTemplateFactory ( ISettingsService settingsService ) : System.Collections.Generic

Initializes a new instance of the BaseTextTemplateFactory class.

GetNameSpace ( IProjectService projectService, string directory ) : string

Gets the name space.

GetProjectType ( ProjectSuffix projectSuffix ) : string

Gets the type of the project.

GetTextTemplateInfo ( IProjectService projectService, string templateName, string name, string directory, ProjectSuffix projectSuffix, string projectSuffixName, string>.Dictionary baseDictionary, bool useProjectSuffix, string projectSuffixOverride = "" ) : TextTemplateInfo

Gets the text template information.

Private Methods

Method Description
GetClassName ( string name, ProjectSuffix projectSuffix, bool useProjectSuffix ) : string

Gets the name of the class.

GetDictionary ( string>.Dictionary baseDictionary, string nameSpace, string className, string platForm ) : string>.Dictionary

Gets the dictionary.

GetFileName ( string name, ProjectSuffix projectSuffix, bool useProjectSuffix ) : string

Gets the name of the file.

Method Details

BaseTextTemplateFactory() protected method

Initializes a new instance of the BaseTextTemplateFactory class.
protected BaseTextTemplateFactory ( ISettingsService settingsService ) : System.Collections.Generic
settingsService ISettingsService
return System.Collections.Generic

GetNameSpace() protected method

Gets the name space.
protected GetNameSpace ( IProjectService projectService, string directory ) : string
projectService IProjectService The project service.
directory string The directory.
return string

GetProjectType() protected method

Gets the type of the project.
protected GetProjectType ( ProjectSuffix projectSuffix ) : string
projectSuffix ProjectSuffix The project suffix.
return string

GetTextTemplateInfo() protected method

Gets the text template information.
protected GetTextTemplateInfo ( IProjectService projectService, string templateName, string name, string directory, ProjectSuffix projectSuffix, string projectSuffixName, string>.Dictionary baseDictionary, bool useProjectSuffix, string projectSuffixOverride = "" ) : TextTemplateInfo
projectService IProjectService The project service.
templateName string Name of the template.
name string The name.
directory string The directory.
projectSuffix ProjectSuffix The project suffix.
projectSuffixName string Name of the project suffix.
baseDictionary string>.Dictionary The base dictionary.
useProjectSuffix bool if set to true [use project suffix].
projectSuffixOverride string The project suffix override.
return Scorchio.VisualStudio.Entities.TextTemplateInfo

Property Details

SettingsService protected_oe property

The settings service.
protected ISettingsService SettingsService
return ISettingsService