C# Class Serenity.CodeGeneration.ScriptDtoGenerator

Exibir arquivo Open project: volkanceylan/Serenity Class Usage Examples

Public Methods

Method Description
CanHandleType ( Type memberType ) : bool
GenerateCode ( ) : string>.SortedDictionary
HandleMemberType ( StringBuilder code, Type memberType, string codeNamespace, HashSet usingNamespaces, Action enqueueType = null ) : void
MakeFriendlyName ( Type type, string codeNamespace, HashSet usingNamespaces ) : string
ScriptDtoGenerator ( ) : Newtonsoft.Json

Private Methods

Method Description
EnqueueType ( Type type ) : bool
EnqueueTypeMembers ( Type type ) : void
GenerateCodeFor ( Type type ) : void
GenerateEnum ( Type enumType ) : void
GenerateRowMembers ( Type rowType ) : void
GetNamespace ( Type type ) : string
GetParentClass ( Type type ) : Type
HandleMemberType ( Type memberType, string codeNamespace, HashSet usingNamespaces ) : void

Method Details

CanHandleType() public static method

public static CanHandleType ( Type memberType ) : bool
memberType System.Type
return bool

GenerateCode() public method

public GenerateCode ( ) : string>.SortedDictionary
return string>.SortedDictionary

HandleMemberType() public static method

public static HandleMemberType ( StringBuilder code, Type memberType, string codeNamespace, HashSet usingNamespaces, Action enqueueType = null ) : void
code StringBuilder
memberType System.Type
codeNamespace string
usingNamespaces HashSet
enqueueType Action
return void

MakeFriendlyName() public static method

public static MakeFriendlyName ( Type type, string codeNamespace, HashSet usingNamespaces ) : string
type System.Type
codeNamespace string
usingNamespaces HashSet
return string

ScriptDtoGenerator() public method

public ScriptDtoGenerator ( ) : Newtonsoft.Json
return Newtonsoft.Json