Skip to content

CodeWriter.ShortTypeName method (1 of 2)

Returns the short type name for the given fully qualified name, adding the namespace to the local usings if possible.

public string ShortTypeName(string fullName)
parameter description
fullName The fully qualified type name.

Return Value

The type name alone if the namespace can be used, otherwise the fully qualified name.

See Also


CodeWriter.ShortTypeName method (2 of 2)

Returns the short type name for the given namespace and type name, adding the namespace to the local usings if possible.

public string ShortTypeName(string ns, string typeName)
parameter description
ns The namespace.
typeName The type name.

Return Value

The type name alone if the namespace can be used, otherwise the fully qualified name.

See Also