C# Class Nimrod.TypeScriptType

显示文件 Open project: resgroup/nimrod

Public Methods

Method Description
ToString ( ) : string
ToString ( Predicate includeNamespace ) : string
ToString ( Predicate includeNamespace, bool includeGenericArguments ) : string
ToString ( Predicate includeNamespace, bool includeGenericArguments, bool strictNullCheck ) : string
ToString ( ToTypeScriptOptions options ) : string
TypeScriptType ( Type type ) : System

Private Methods

Method Description
ArrayToTypeScript ( ToTypeScriptOptions options ) : string
GenericTypeToTypeScript ( Type type, ToTypeScriptOptions options ) : string

Generic type, emit GenericType`2 as GenericType

ToTypeScriptForGenericClass ( Type type, ToTypeScriptOptions options ) : string

Complicated stuff for returning the name of a generic class

TryGetTypeScriptForSimpleType ( Type type, ToTypeScriptOptions options, string &value ) : bool

Return TypeScript type for simple type like numbers, datetime, string, etc..

TupleToTypeScript ( Type type, ToTypeScriptOptions options ) : string

Method Details

ToString() public method

public ToString ( ) : string
return string

ToString() public method

public ToString ( Predicate includeNamespace ) : string
includeNamespace Predicate
return string

ToString() public method

public ToString ( Predicate includeNamespace, bool includeGenericArguments ) : string
includeNamespace Predicate
includeGenericArguments bool
return string

ToString() public method

public ToString ( Predicate includeNamespace, bool includeGenericArguments, bool strictNullCheck ) : string
includeNamespace Predicate
includeGenericArguments bool
strictNullCheck bool
return string

ToString() public method

public ToString ( ToTypeScriptOptions options ) : string
options ToTypeScriptOptions
return string

TypeScriptType() public method

public TypeScriptType ( Type type ) : System
type System.Type
return System