Summary
Contains extension methods for
IFile
.
- Namespace
- Cake
.Core .IO - Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["FileExtensions"]
class Type type-node
Syntax
public static class FileExtensions
Methods
Name | Value | Summary |
---|---|---|
IsClrAssembly |
bool |
Checks if file has CLR PE Header.
static
|
Open |
Stream |
Opens the file using the specified options.
static
|
Open |
Stream |
Opens the file using the specified options.
static
|
OpenRead |
Stream |
Opens the file for reading.
static
|
OpenWrite |
Stream |
Opens the file for writing.
If the file already exists, it will be overwritten.
static
|
ReadLines |
IEnumerable |
Enumerates line in file.
static
|
Extension Methods
Name | Value | Summary |
---|---|---|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
Returns the string value or a
Not set > markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|