C# Class NSwag.CodeGeneration.NSwagDocument

The NSwagDocument implementation.
Inheritance: NSwagDocumentBase
Mostra file Open project: NSwag/NSwag Class Usage Examples

Public Methods

Method Description
Create ( ) : NSwagDocument

Creates a new NSwagDocument.

LoadAsync ( string filePath ) : Task

Loads an existing NSwagDocument.

NSwagDocument ( ) : System

Initializes a new instance of the NSwagDocument class.

Protected Methods

Method Description
ConvertToAbsolutePath ( string pathToConvert ) : string

Converts to absolute path.

ConvertToRelativePath ( string pathToConvert ) : string

Converts a path to an relative path.

Private Methods

Method Description
GetDocumentDirectory ( ) : string

Method Details

ConvertToAbsolutePath() protected method

Converts to absolute path.
protected ConvertToAbsolutePath ( string pathToConvert ) : string
pathToConvert string The path to convert.
return string

ConvertToRelativePath() protected method

Converts a path to an relative path.
protected ConvertToRelativePath ( string pathToConvert ) : string
pathToConvert string The path to convert.
return string

Create() public static method

Creates a new NSwagDocument.
public static Create ( ) : NSwagDocument
return NSwagDocument

LoadAsync() public static method

Loads an existing NSwagDocument.
public static LoadAsync ( string filePath ) : Task
filePath string The file path.
return Task

NSwagDocument() public method

Initializes a new instance of the NSwagDocument class.
public NSwagDocument ( ) : System
return System