C# Class ServiceStack.NativeTypes.MetadataTypesGenerator

ファイルを表示 Open project: ServiceStack/ServiceStack

Public Methods

Method Description
GetInstancePublicProperties ( Type type ) : System.Reflection.PropertyInfo[]
GetMetadataTypes ( IRequest req, bool>.Func predicate = null ) : MetadataTypes
GetNamespacesUsed ( Type type ) : HashSet
IncludeAttrsFilter ( Attribute x ) : bool
MetadataTypesGenerator ( ServiceMetadata meta, MetadataTypesConfig config ) : System
NonDefaultProperties ( Attribute attr ) : List
ToAttribute ( Attribute attr ) : MetadataAttribute
ToAttributes ( IEnumerable attrs ) : List
ToAttributes ( Type type ) : List
ToAttributes ( object attrs ) : List
ToDataMember ( DataMemberAttribute attr ) : MetadataDataMember
ToProperties ( Type type ) : List
ToProperty ( ParameterInfo pi ) : MetadataPropertyType
ToProperty ( PropertyInfo pi, object instance = null ) : MetadataPropertyType
ToType ( Type type ) : MetadataType
ToTypeName ( Type type ) : MetadataTypeName

Private Methods

Method Description
GetGenericArgs ( Type type ) : string[]
IsSystemCollection ( Type type ) : bool
ToInterfaces ( Type type ) : MetadataTypeName[]

Method Details

GetInstancePublicProperties() public static method

public static GetInstancePublicProperties ( Type type ) : System.Reflection.PropertyInfo[]
type System.Type
return System.Reflection.PropertyInfo[]

GetMetadataTypes() public method

public GetMetadataTypes ( IRequest req, bool>.Func predicate = null ) : MetadataTypes
req IRequest
predicate bool>.Func
return MetadataTypes

GetNamespacesUsed() public method

public GetNamespacesUsed ( Type type ) : HashSet
type System.Type
return HashSet

IncludeAttrsFilter() public method

public IncludeAttrsFilter ( Attribute x ) : bool
x System.Attribute
return bool

MetadataTypesGenerator() public method

public MetadataTypesGenerator ( ServiceMetadata meta, MetadataTypesConfig config ) : System
meta ServiceStack.Host.ServiceMetadata
config MetadataTypesConfig
return System

NonDefaultProperties() public method

public NonDefaultProperties ( Attribute attr ) : List
attr System.Attribute
return List

ToAttribute() public method

public ToAttribute ( Attribute attr ) : MetadataAttribute
attr System.Attribute
return MetadataAttribute

ToAttributes() public method

public ToAttributes ( IEnumerable attrs ) : List
attrs IEnumerable
return List

ToAttributes() public method

public ToAttributes ( Type type ) : List
type System.Type
return List

ToAttributes() public method

public ToAttributes ( object attrs ) : List
attrs object
return List

ToDataMember() public static method

public static ToDataMember ( DataMemberAttribute attr ) : MetadataDataMember
attr System.Runtime.Serialization.DataMemberAttribute
return MetadataDataMember

ToProperties() public method

public ToProperties ( Type type ) : List
type System.Type
return List

ToProperty() public method

public ToProperty ( ParameterInfo pi ) : MetadataPropertyType
pi System.Reflection.ParameterInfo
return MetadataPropertyType

ToProperty() public method

public ToProperty ( PropertyInfo pi, object instance = null ) : MetadataPropertyType
pi System.Reflection.PropertyInfo
instance object
return MetadataPropertyType

ToType() public method

public ToType ( Type type ) : MetadataType
type System.Type
return MetadataType

ToTypeName() public method

public ToTypeName ( Type type ) : MetadataTypeName
type System.Type
return MetadataTypeName