C# Class StreamExtensions, openfilesystem

Mostrar archivo Open project: openrasta/openfilesystem Class Usage Examples

Public Methods

Method Description
ReadToEnd ( this stream ) : byte[]
ShouldBe ( this file ) : IFile
Write ( this file, Action writer, FileMode, mode = FileMode.Create, FileAccess, access = FileAccess.Write, FileShare, share = FileShare.None ) : void
Write ( this file, byte data = (byte)0, FileMode, mode = FileMode.Create, FileAccess, access = FileAccess.Write, FileShare, share = FileShare.None ) : void

Method Details

ReadToEnd() public static method

public static ReadToEnd ( this stream ) : byte[]
stream this
return byte[]

ShouldBe() public static method

public static ShouldBe ( this file ) : IFile
file this
return IFile

Write() public static method

public static Write ( this file, Action writer, FileMode, mode = FileMode.Create, FileAccess, access = FileAccess.Write, FileShare, share = FileShare.None ) : void
file this
writer Action
mode FileMode,
access FileAccess,
share FileShare,
return void

Write() public static method

public static Write ( this file, byte data = (byte)0, FileMode, mode = FileMode.Create, FileAccess, access = FileAccess.Write, FileShare, share = FileShare.None ) : void
file this
data byte
mode FileMode,
access FileAccess,
share FileShare,
return void