FileExtensions Class

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(IFile) bool
Checks if file has CLR PE Header.
static
Open(IFile, FileMode, FileAccess) Stream
Opens the file using the specified options.
static
Open(IFile, FileMode) Stream
Opens the file using the specified options.
static
OpenRead(IFile) Stream
Opens the file for reading.
static
OpenWrite(IFile) Stream
Opens the file for writing. If the file already exists, it will be overwritten.
static
ReadLines(IFile, Encoding) IEnumerable<string>
Enumerates line in file.
static

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin