Interface ICsModel
Base implementation all C# models must implement.
Inherited Members
Namespace: CodeFactory.DotNet.CSharp
Assembly: CodeFactory.DotNet.dll
Syntax
public interface ICsModel : IDotNetModel, IModelStatus
Properties
| Improve this Doc View SourceModelType
The type of c# model that is implemented.
Declaration
CsModelType ModelType { get; }
Property Value
Type | Description |
---|---|
CsModelType |
Methods
| Improve this Doc View SourceGetModel(string)
Searchs for an existing C# model that has been loaded with the load of the source code.
Declaration
CsModel GetModel(string lookupPath)
Parameters
Type | Name | Description |
---|---|---|
string | lookupPath | The lookup path that is assigned to a loaded model. |
Returns
Type | Description |
---|---|
CsModel | Returns the model as the base CsModel type. |
GetModel<T>(string)
Searchs for an existing C# model that has been loaded with the load of the source code.
Declaration
T GetModel<T>(string lookupPath) where T : class, ICsModel
Parameters
Type | Name | Description |
---|---|---|
string | lookupPath | The lookup path that is assigned to a loaded model. |
Returns
Type | Description |
---|---|
T | Returns the model as the identified type it will either return the instance or null if it is not found or not the correct type. |
Type Parameters
Name | Description |
---|---|
T | The target CsModel type to cast to before returning. |