Class GeneratedFileExtensions
- Namespace
- TypedRest.CodeGeneration.Generation
- Assembly
- TypedRest.CodeGeneration.dll
Extension methods for IGeneratedFile.
public static class GeneratedFileExtensions
- Inheritance
-
objectGeneratedFileExtensions
Methods
GetContent(IGeneratedFile)
Returns the content of the file as a string.
public static string GetContent(this IGeneratedFile file)
Parameters
fileIGeneratedFile
Returns
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
fileIGeneratedFilepathstring