C# Class FiftyOne.Foundation.Mobile.Detection.Entities.Stream.DataSet

A data set returned from the stream factory which includes a pool of data readers that are used to fetch data from the source when the data set is used to retrieve data not already in memory.
Inheritance: Entities.DataSet, IStreamDataSet
Show file Open project: 51Degrees/dotNET-Device-Detection Class Usage Examples

Private Properties

Property Type Description
DataSet System
DataSet System

Public Methods

Method Description
ResetCache ( ) : void

Resets the cache for the data set.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Disposes of the data set closing all readers and streams in the pool. If a temporary data file is used then the file is also deleted if it's not being used by other processes.

Private Methods

Method Description
DataSet ( byte data, Modes mode ) : System

Creates a new stream data set connected to the byte array data source provided.

DataSet ( string fileName, System.DateTime lastModified, Modes mode, bool isTempFile ) : System

Creates a new stream DataSet connected to the data file provided.

Method Details

Dispose() protected method

Disposes of the data set closing all readers and streams in the pool. If a temporary data file is used then the file is also deleted if it's not being used by other processes.
protected Dispose ( bool disposing ) : void
disposing bool /// True if the calling method is Dispose, false for the finaliser. ///
return void

ResetCache() public method

Resets the cache for the data set.
public ResetCache ( ) : void
return void