C# Class yycms.admin.Areas.HelpPage.ModelDescriptions.ModelDescriptionGenerator

Generates model descriptions for given types.
Afficher le fichier Open project: seven1276/yycms Class Usage Examples

Private Properties

Свойство Type Description
CreateDefaultDocumentation string
GenerateAnnotations void
GenerateCollectionModelDescription CollectionModelDescription
GenerateComplexTypeModelDescription ModelDescription
GenerateDictionaryModelDescription DictionaryModelDescription
GenerateEnumTypeModelDescription EnumTypeModelDescription
GenerateKeyValuePairModelDescription KeyValuePairModelDescription
GenerateSimpleTypeModelDescription ModelDescription
GetMemberName string
ShouldDisplayMember bool

Méthodes publiques

Méthode Description
GetOrCreateModelDescription ( Type modelType ) : ModelDescription
ModelDescriptionGenerator ( System.Web.Http.HttpConfiguration config ) : System

Private Methods

Méthode Description
CreateDefaultDocumentation ( Type type ) : string
GenerateAnnotations ( MemberInfo property, ParameterDescription propertyModel ) : void
GenerateCollectionModelDescription ( Type modelType, Type elementType ) : CollectionModelDescription
GenerateComplexTypeModelDescription ( Type modelType ) : ModelDescription
GenerateDictionaryModelDescription ( Type modelType, Type keyType, Type valueType ) : DictionaryModelDescription
GenerateEnumTypeModelDescription ( Type modelType ) : EnumTypeModelDescription
GenerateKeyValuePairModelDescription ( Type modelType, Type keyType, Type valueType ) : KeyValuePairModelDescription
GenerateSimpleTypeModelDescription ( Type modelType ) : ModelDescription
GetMemberName ( MemberInfo member, bool hasDataContractAttribute ) : string
ShouldDisplayMember ( MemberInfo member, bool hasDataContractAttribute ) : bool

Method Details

GetOrCreateModelDescription() public méthode

public GetOrCreateModelDescription ( Type modelType ) : ModelDescription
modelType System.Type
Résultat ModelDescription

ModelDescriptionGenerator() public méthode

public ModelDescriptionGenerator ( System.Web.Http.HttpConfiguration config ) : System
config System.Web.Http.HttpConfiguration
Résultat System