C# Class Swagger.Net.Factories.ModelFactory

显示文件 Open project: danieleli/Swagger.Net Class Usage Examples

Public Methods

Method Description
CreateModel ( Type type ) : object
GetDataType ( Type inputType ) : Type
GetModels ( IEnumerable apiDescs ) : object>.Dictionary
ModelFactory ( ) : System
ModelFactory ( System.Web.Http.XmlCommentDocumentationProvider documentationProvider ) : System

Private Methods

Method Description
GetAllTypes ( IEnumerable apiDescs ) : IEnumerable
GetProperty ( PropertyInfo prop ) : object
GetUniqueTypes ( IEnumerable apiDescs ) : IEnumerable

Method Details

CreateModel() public method

public CreateModel ( Type type ) : object
type System.Type
return object

GetDataType() public static method

public static GetDataType ( Type inputType ) : Type
inputType System.Type
return System.Type

GetModels() public method

public GetModels ( IEnumerable apiDescs ) : object>.Dictionary
apiDescs IEnumerable
return object>.Dictionary

ModelFactory() public method

public ModelFactory ( ) : System
return System

ModelFactory() public method

public ModelFactory ( System.Web.Http.XmlCommentDocumentationProvider documentationProvider ) : System
documentationProvider System.Web.Http.XmlCommentDocumentationProvider
return System