Class Builder
Provides a base class for all builders.
Inheritance
System.Object
Assembly: cs.temp.dll.dll
Syntax
public abstract class Builder
Constructors
Builder()
Declaration
Builder(ModelsBuilderSettings, IList<TypeModel>)
Initializes a new instance of the Builder class with a list of models to generate,
the result of code parsing, and a models namespace.
Declaration
protected Builder(ModelsBuilderSettings config, IList<TypeModel> typeModels)
Parameters
Type |
Name |
Description |
ModelsBuilderSettings |
config |
|
System.Collections.Generic.IList<TypeModel> |
typeModels |
The list of models to generate.
|
Properties
Config
Declaration
protected ModelsBuilderSettings Config { get; }
Property Value
Type |
Description |
ModelsBuilderSettings |
|
ModelsMap
Declaration
protected Dictionary<string, string> ModelsMap { get; }
Property Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, System.String> |
|
ModelsNamespace
Gets or sets a value indicating the namespace to use for the models.
Declaration
public string ModelsNamespace { get; set; }
Property Value
Type |
Description |
System.String |
|
ModelsNamespaceForTests
Declaration
public string ModelsNamespaceForTests { get; set; }
Property Value
Type |
Description |
System.String |
|
TypeModels
Gets the list of all models.
Declaration
public IList<TypeModel> TypeModels { get; }
Property Value
Type |
Description |
System.Collections.Generic.IList<TypeModel> |
|
TypesUsing
Declaration
protected IList<string> TypesUsing { get; }
Property Value
Type |
Description |
System.Collections.Generic.IList<System.String> |
|
Using
Gets the list of assemblies to add to the set of 'using' assemblies in each model file.
Declaration
public IList<string> Using { get; }
Property Value
Type |
Description |
System.Collections.Generic.IList<System.String> |
|
Methods
GetModelsBaseClassName(TypeModel)
Declaration
protected string GetModelsBaseClassName(TypeModel type)
Parameters
Returns
Type |
Description |
System.String |
|
GetModelsNamespace()
Declaration
public string GetModelsNamespace()
Returns
Type |
Description |
System.String |
|
GetModelsToGenerate()
Gets the list of models to generate.
Declaration
public IEnumerable<TypeModel> GetModelsToGenerate()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TypeModel> |
The models to generate
|
IsAmbiguousSymbol(String, String)
Declaration
protected bool IsAmbiguousSymbol(string symbol, string match)
Parameters
Type |
Name |
Description |
System.String |
symbol |
|
System.String |
match |
|
Returns
Type |
Description |
System.Boolean |
|