C# Class AzureCarRetailDBWebService.Areas.HelpPage.ModelDescriptions.ModelDescriptionGenerator

Generates model descriptions for given types.
显示文件 Open project: perl-easj/OOProg

Private Properties

Property Type Description
CreateDefaultDocumentation string
GenerateAnnotations void
GenerateCollectionModelDescription AzureCarRetailDBWebService.Areas.HelpPage.ModelDescriptions.CollectionModelDescription
GenerateComplexTypeModelDescription AzureCarRetailDBWebService.Areas.HelpPage.ModelDescriptions.ModelDescription
GenerateDictionaryModelDescription DictionaryModelDescription
GenerateEnumTypeModelDescription AzureCarRetailDBWebService.Areas.HelpPage.ModelDescriptions.EnumTypeModelDescription
GenerateKeyValuePairModelDescription AzureCarRetailDBWebService.Areas.HelpPage.ModelDescriptions.KeyValuePairModelDescription
GenerateSimpleTypeModelDescription AzureCarRetailDBWebService.Areas.HelpPage.ModelDescriptions.ModelDescription
GetMemberName string
ShouldDisplayMember bool

Public Methods

Method Description
GetOrCreateModelDescription ( Type modelType ) : AzureCarRetailDBWebService.Areas.HelpPage.ModelDescriptions.ModelDescription
ModelDescriptionGenerator ( HttpConfiguration config ) : System

Private Methods

Method Description
CreateDefaultDocumentation ( Type type ) : string
GenerateAnnotations ( MemberInfo property, AzureCarRetailDBWebService.Areas.HelpPage.ModelDescriptions.ParameterDescription propertyModel ) : void
GenerateCollectionModelDescription ( Type modelType, Type elementType ) : AzureCarRetailDBWebService.Areas.HelpPage.ModelDescriptions.CollectionModelDescription
GenerateComplexTypeModelDescription ( Type modelType ) : AzureCarRetailDBWebService.Areas.HelpPage.ModelDescriptions.ModelDescription
GenerateDictionaryModelDescription ( Type modelType, Type keyType, Type valueType ) : DictionaryModelDescription
GenerateEnumTypeModelDescription ( Type modelType ) : AzureCarRetailDBWebService.Areas.HelpPage.ModelDescriptions.EnumTypeModelDescription
GenerateKeyValuePairModelDescription ( Type modelType, Type keyType, Type valueType ) : AzureCarRetailDBWebService.Areas.HelpPage.ModelDescriptions.KeyValuePairModelDescription
GenerateSimpleTypeModelDescription ( Type modelType ) : AzureCarRetailDBWebService.Areas.HelpPage.ModelDescriptions.ModelDescription
GetMemberName ( MemberInfo member, bool hasDataContractAttribute ) : string
ShouldDisplayMember ( MemberInfo member, bool hasDataContractAttribute ) : bool

Method Details

GetOrCreateModelDescription() public method

public GetOrCreateModelDescription ( Type modelType ) : AzureCarRetailDBWebService.Areas.HelpPage.ModelDescriptions.ModelDescription
modelType Type
return AzureCarRetailDBWebService.Areas.HelpPage.ModelDescriptions.ModelDescription

ModelDescriptionGenerator() public method

public ModelDescriptionGenerator ( HttpConfiguration config ) : System
config HttpConfiguration
return System