C# Class ServiceStack.NativeTypes.MetadataExtensions

Exibir arquivo Open project: ServiceStack/ServiceStack

Public Methods

Method Description
GetAllTypes ( this metadata ) : List
GetDefaultNamespaces ( this config, MetadataTypes metadata ) : HashSet
GetDepTypes ( Dictionary deps, MetadataType>.Dictionary typesMap, HashSet considered, MetadataType type ) : IEnumerable
GetIncludeList ( MetadataTypes metadata, MetadataTypesConfig config ) : List
GetReferencedTypeNames ( this type ) : HashSet
GetTypeName ( this prop, MetadataTypesConfig config, List allTypes ) : string
GetValues ( this map, string key ) : List
IgnoreSystemType ( this type ) : bool
IgnoreType ( this type, MetadataTypesConfig config, List overrideIncludeType = null ) : bool
OrderTypesByDeps ( this types ) : List
ParseTypeIntoNodes ( this typeDef ) : TextNode
Push ( this map, string key, string value ) : void
QuotedSafeValue ( this value ) : string
RemoveIgnoredTypes ( this metadata, MetadataTypesConfig config ) : void
RemoveIgnoredTypesForNet ( this metadata, MetadataTypesConfig config ) : void
SafeComment ( this comment ) : string
SafeToken ( this token ) : string
SafeValue ( this value ) : string
SanitizeType ( this typeName ) : string
SplitGenericArgs ( string argList ) : List
ToMetadataAttribute ( this route ) : MetadataAttribute
ToMetadataTypeName ( this type ) : MetadataTypeName
ToPrettyName ( this type ) : string

Method Details

GetAllTypes() public static method

public static GetAllTypes ( this metadata ) : List
metadata this
return List

GetDefaultNamespaces() public static method

public static GetDefaultNamespaces ( this config, MetadataTypes metadata ) : HashSet
config this
metadata MetadataTypes
return HashSet

GetDepTypes() public static method

public static GetDepTypes ( Dictionary deps, MetadataType>.Dictionary typesMap, HashSet considered, MetadataType type ) : IEnumerable
deps Dictionary
typesMap MetadataType>.Dictionary
considered HashSet
type MetadataType
return IEnumerable

GetIncludeList() public static method

public static GetIncludeList ( MetadataTypes metadata, MetadataTypesConfig config ) : List
metadata MetadataTypes
config MetadataTypesConfig
return List

GetReferencedTypeNames() public static method

public static GetReferencedTypeNames ( this type ) : HashSet
type this
return HashSet

GetTypeName() public static method

public static GetTypeName ( this prop, MetadataTypesConfig config, List allTypes ) : string
prop this
config MetadataTypesConfig
allTypes List
return string

GetValues() public static method

public static GetValues ( this map, string key ) : List
map this
key string
return List

IgnoreSystemType() public static method

public static IgnoreSystemType ( this type ) : bool
type this
return bool

IgnoreType() public static method

public static IgnoreType ( this type, MetadataTypesConfig config, List overrideIncludeType = null ) : bool
type this
config MetadataTypesConfig
overrideIncludeType List
return bool

OrderTypesByDeps() public static method

public static OrderTypesByDeps ( this types ) : List
types this
return List

ParseTypeIntoNodes() public static method

public static ParseTypeIntoNodes ( this typeDef ) : TextNode
typeDef this
return TextNode

Push() public static method

public static Push ( this map, string key, string value ) : void
map this
key string
value string
return void

QuotedSafeValue() public static method

public static QuotedSafeValue ( this value ) : string
value this
return string

RemoveIgnoredTypes() public static method

public static RemoveIgnoredTypes ( this metadata, MetadataTypesConfig config ) : void
metadata this
config MetadataTypesConfig
return void

RemoveIgnoredTypesForNet() public static method

public static RemoveIgnoredTypesForNet ( this metadata, MetadataTypesConfig config ) : void
metadata this
config MetadataTypesConfig
return void

SafeComment() public static method

public static SafeComment ( this comment ) : string
comment this
return string

SafeToken() public static method

public static SafeToken ( this token ) : string
token this
return string

SafeValue() public static method

public static SafeValue ( this value ) : string
value this
return string

SanitizeType() public static method

public static SanitizeType ( this typeName ) : string
typeName this
return string

SplitGenericArgs() public static method

public static SplitGenericArgs ( string argList ) : List
argList string
return List

ToMetadataAttribute() public static method

public static ToMetadataAttribute ( this route ) : MetadataAttribute
route this
return MetadataAttribute

ToMetadataTypeName() public static method

public static ToMetadataTypeName ( this type ) : MetadataTypeName
type this
return MetadataTypeName

ToPrettyName() public static method

public static ToPrettyName ( this type ) : string
type this
return string