C# Class NetFx.StringlyTyped.Stringly.StringlyScope

Inheritance: IStringlyScope
Datei anzeigen Open project: netfx/extensions

Public Methods

Method Description
AddType ( string typeFullName ) : void
GetTypeName ( string fullName ) : string

Gets the name of the type that can be used in code generation, considering the already determined SafeImports.

Private Methods

Method Description
BuildSafeImports ( ) : void

From the type map, finds those namespaces that can be safely imported ("using" in C#) without causing type collisions among the type names in the map.

BuildSafeTypeNames ( ) : void

Searches the type map for potential simplifications to type names. All type names that are unique across all used namespaces are turned into their simple type name (without the namespace).

ClrToCSharpGeneric ( string typeName ) : string

Sanitizes the generics.

EnsureBuilt ( ) : void
ToSimpleName ( string type ) : string

Method Details

AddType() public method

public AddType ( string typeFullName ) : void
typeFullName string
return void

GetTypeName() public method

Gets the name of the type that can be used in code generation, considering the already determined SafeImports.
public GetTypeName ( string fullName ) : string
fullName string
return string