C# Class NetFx.StringlyTyped.Stringly.StringlyScope

Inheritance: IStringlyScope
Afficher le fichier Open project: netfx/extensions

Méthodes publiques

Méthode 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

Méthode 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 méthode

public AddType ( string typeFullName ) : void
typeFullName string
Résultat void

GetTypeName() public méthode

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
Résultat string