C# Класс demo.sinch.com.Areas.HelpPage.ModelDescriptions.ModelDescriptionGenerator

Generates model descriptions for given types.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CreateDefaultDocumentation string
GenerateAnnotations void
GenerateCollectionModelDescription CollectionModelDescription
GenerateComplexTypeModelDescription ModelDescription
GenerateDictionaryModelDescription DictionaryModelDescription
GenerateEnumTypeModelDescription EnumTypeModelDescription
GenerateKeyValuePairModelDescription KeyValuePairModelDescription
GenerateSimpleTypeModelDescription ModelDescription
GetMemberName string
ShouldDisplayMember bool

Открытые методы

Метод Описание
GetOrCreateModelDescription ( Type modelType ) : ModelDescription
ModelDescriptionGenerator ( System.Web.Http.HttpConfiguration config ) : System

Приватные методы

Метод Описание
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

Описание методов

GetOrCreateModelDescription() публичный Метод

public GetOrCreateModelDescription ( Type modelType ) : ModelDescription
modelType System.Type
Результат ModelDescription

ModelDescriptionGenerator() публичный Метод

public ModelDescriptionGenerator ( System.Web.Http.HttpConfiguration config ) : System
config System.Web.Http.HttpConfiguration
Результат System