CodeWriter.ShortTypeName method (1 of 3)

namespace: Serenity.Reflection   assemblySerenity.Net.Core

Tries to add namespace

public string ShortTypeName(string fullName)

Return Value

if succeeds returns only typeName if fails returns fullName

See Also


CodeWriter.ShortTypeName method (2 of 3)

namespace: Serenity.Reflection   assemblySerenity.Net.Core

Converts datatype with a namespace to datatype without namespace if its namespace is in the allowed usings else returns fullname.

Please see IsCSharp if you are using this for C#

public string ShortTypeName(CodeWriter cw, string fullName)
parameter description
cw
fullName

See Also


CodeWriter.ShortTypeName method (3 of 3)

namespace: Serenity.Reflection   assemblySerenity.Net.Core

Tries to add namespace

public string ShortTypeName(string nameSpace, string typeName)
parameter description
nameSpace
typeName

Return Value

if succeeds returns only typeName if fails returns fullName

See Also