Table of Contents

Class GeneratedFileExtensions

Namespace
TypedRest.CodeGeneration.Generation
Assembly
TypedRest.CodeGeneration.dll

Extension methods for IGeneratedFile.

public static class GeneratedFileExtensions
Inheritance
object
GeneratedFileExtensions

Methods

GetContent(IGeneratedFile)

Returns the content of the file as a string.

public static string GetContent(this IGeneratedFile file)

Parameters

file IGeneratedFile

Returns

string

WriteToDirectory(IGeneratedFile, string)

Writes the file to Path below the directory at path, creating any missing subdirectories.

public static void WriteToDirectory(this IGeneratedFile file, string path)

Parameters

file IGeneratedFile
path string