C# Class T4Scaffolding.Namespaces

Utility method - produces the "Begin Namespace ..." and "End Namespace" lines for VB accounting for VB's "omit default namespace" convention and the possibility of there being no namespace lines required
Show file Open project: processedbeets/ASP.NET-MVC-Scaffolding

Public Methods

Method Description
BeginVb ( string fullNamespace, string defaultNamespace ) : string
EndVb ( string fullNamespace, string defaultNamespace ) : string
GetNamespace ( string fullyQualifiedTypeName ) : string
Normalize ( string fullNamespace ) : string

Private Methods

Method Description
NamespaceToOutput ( string fullNamespace, string defaultNamespace ) : string

Method Details

BeginVb() public static method

public static BeginVb ( string fullNamespace, string defaultNamespace ) : string
fullNamespace string
defaultNamespace string
return string

EndVb() public static method

public static EndVb ( string fullNamespace, string defaultNamespace ) : string
fullNamespace string
defaultNamespace string
return string

GetNamespace() public static method

public static GetNamespace ( string fullyQualifiedTypeName ) : string
fullyQualifiedTypeName string
return string

Normalize() public static method

public static Normalize ( string fullNamespace ) : string
fullNamespace string
return string