C# Class Swagger.Net.Helpers.TypeParser

A parser to Swagger data types as defined at https://github.com/wordnik/swagger-core/wiki/Datatypes.
Show file Open project: giacomelli/DG-Swagger.Net

Public Methods

Method Description
Parse ( Type type ) : string

Parses the specified type to the Swagger data type.

Parse ( string type ) : string

Parses the specified type to the Swagger data type.

Private Methods

Method Description
TypeParser ( ) : System

Initializes the TypeParser class.

Method Details

Parse() public static method

Parses the specified type to the Swagger data type.
public static Parse ( Type type ) : string
type System.Type The type.
return string

Parse() public static method

Parses the specified type to the Swagger data type.
public static Parse ( string type ) : string
type string The type.
return string