C# 클래스 NStub.Core.Utility

This class provides basic utility methods to assist in the code generation perfomed by NStub.
파일 보기 프로젝트 열기: Jedzia/NStub

공개 메소드들

메소드 설명
GetNamespaceFromFullyQualifiedTypeName ( string name ) : string

Gets the name of the namespace from fully the given qualified type. For example, if System.IO.Stream is provided, System.IO is returned.

GetUnqualifiedTypeName ( string name ) : string

Gets the unqualified name of the given type. For example, if System.IO.Stream is provided, Stream is returned.

ScrubPathOfIllegalCharacters ( string path ) : string

Removes any illegal characters from the given path and replaces them with _.

메소드 상세

GetNamespaceFromFullyQualifiedTypeName() 공개 정적인 메소드

Gets the name of the namespace from fully the given qualified type. For example, if System.IO.Stream is provided, System.IO is returned.
name is null. name is an empty string.
public static GetNamespaceFromFullyQualifiedTypeName ( string name ) : string
name string The fully qualified name.
리턴 string

GetUnqualifiedTypeName() 공개 정적인 메소드

Gets the unqualified name of the given type. For example, if System.IO.Stream is provided, Stream is returned.
name is null. name is an empty string.
public static GetUnqualifiedTypeName ( string name ) : string
name string The fully qualified name.
리턴 string

ScrubPathOfIllegalCharacters() 공개 정적인 메소드

Removes any illegal characters from the given path and replaces them with _.
path is null. path is an empty string.
public static ScrubPathOfIllegalCharacters ( string path ) : string
path string The path containing illegal characters.
리턴 string