C# Class SIL.Utils.MockFileOS.MockFile

Represents a file in the file system without actually being a file
Mostra file Open project: sillsdev/FieldWorks

Public Methods

Method Description
AddStream ( IDisposable stream ) : void

Adds the specified stream to the streams that have been opened for this file.

MockFile ( string contents, Encoding encoding ) : System

Initializes a new instance of the MockFile class.

Method Details

AddStream() public method

Adds the specified stream to the streams that have been opened for this file.
public AddStream ( IDisposable stream ) : void
stream IDisposable The stream.
return void

MockFile() public method

Initializes a new instance of the MockFile class.
public MockFile ( string contents, Encoding encoding ) : System
contents string The contents of the file.
encoding System.Text.Encoding The file encoding.
return System