C# Class FiftyOne.Foundation.Mobile.Detection.Readers.SourceFile

Encapsulates either a file containing the uncompressed data structures used by the data set.
Not intended to be used directly by 3rd parties.
Inheritance: SourceFileBase
Datei anzeigen Open project: 51Degrees/dotNET-Device-Detection

Public Methods

Method Description
Dispose ( ) : void

Closes any file references and then checks to delete the file.

SourceFile ( string fileName, bool isTempFile ) : System

Creates the source from the file provided.

Protected Methods

Method Description
CreateStream ( ) : Stream

Creates a new stream from the data source.

Method Details

CreateStream() protected method

Creates a new stream from the data source.
protected CreateStream ( ) : Stream
return System.IO.Stream

Dispose() public method

Closes any file references and then checks to delete the file.
public Dispose ( ) : void
return void

SourceFile() public method

Creates the source from the file provided.
public SourceFile ( string fileName, bool isTempFile ) : System
fileName string File source of the data
isTempFile bool True if the file should be deleted when the source is disposed
return System