GeneratorUtilsProduceDotNetTypeName Method (IFieldElementCore, Project, String) |
Produces a .NET type name for the field specified. If the field is nullable and nullable types should be generated according to the settings
in the specified field, the pattern is used to produce the type string, otherwise the type name is produced using ToString()
Namespace:
SD.LLBLGen.Pro.GeneratorCore
Assembly:
SD.LLBLGen.Pro.GeneratorCore (in SD.LLBLGen.Pro.GeneratorCore.dll) Version: 5.4.0.0 (5.4.0)
Syntax public static string ProduceDotNetTypeName(
IFieldElementCore field,
Project currentProject,
string typePattern
)
Public Shared Function ProduceDotNetTypeName (
field As IFieldElementCore,
currentProject As Project,
typePattern As String
) As String
Parameters
- field
- Type: SD.LLBLGen.Pro.ApplicationCoreIFieldElementCore
The field. - currentProject
- Type: SD.LLBLGen.Pro.ApplicationCore.ProjectClassesProject
The current project. - typePattern
- Type: SystemString
The type pattern. This is the pattern to use to emit e.g. Nullable(Of T), where 'T' is the type determined by
this method
Return Value
Type:
StringRemarks If the field is a valuetyped field, the name of the valuetype is returned.
See Also