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

Base class for file sources.
Not intended to be used directly by 3rd parties.
Inheritance: SourceBase
ファイルを表示 Open project: 51Degrees/dotNET-Device-Detection

Protected Properties

Property Type Description
_fileInfo System.IO.FileInfo
_isTempFile bool

Protected Methods

Method Description
DeleteFile ( ) : void

Delete the file if it's a temporary file and it still exists.

SourceFileBase ( string fileName, bool isTempFile ) : System

Base for all file data sources.

Method Details

DeleteFile() protected method

Delete the file if it's a temporary file and it still exists.
protected DeleteFile ( ) : void
return void

SourceFileBase() protected method

Base for all file data sources.
protected SourceFileBase ( 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

Property Details

_fileInfo protected_oe property

The file containing the source data.
protected FileInfo,System.IO _fileInfo
return System.IO.FileInfo

_isTempFile protected_oe property

True if the file is temporary and should be deleted when the source is disposed of.
protected bool _isTempFile
return bool