C# Class Encog.Persist.Location.ResourcePersistence

A location that allows Encog objects to be read from a resource. This location only supports read operations, so the Encog resource is usually created first as a file and then embedded in the application as a resource.
Inheritance: IPersistenceLocation
ファイルを表示 Open project: encog/encog-silverlight-core Class Usage Examples

Public Methods

Method Description
CreateStream ( FileMode mode ) : Stream

Create a stream to read the resource.

Delete ( ) : void

Delete operations are not supported for resource persistence.

Exists ( ) : bool

Exist is not supported for resource persistence.

LoadString ( ) : String

Load a string.

RenameTo ( IPersistenceLocation toLocation ) : void

Rename is not supported for resource persistence.

ResourcePersistence ( String resource ) : System

Construct a location to read from the specified resource.

Method Details

CreateStream() public method

Create a stream to read the resource.
public CreateStream ( FileMode mode ) : Stream
mode FileMode
return Stream

Delete() public method

Delete operations are not supported for resource persistence.
public Delete ( ) : void
return void

Exists() public method

Exist is not supported for resource persistence.
public Exists ( ) : bool
return bool

LoadString() public method

Load a string.
public LoadString ( ) : String
return String

RenameTo() public method

Rename is not supported for resource persistence.
public RenameTo ( IPersistenceLocation toLocation ) : void
toLocation IPersistenceLocation Not used.
return void

ResourcePersistence() public method

Construct a location to read from the specified resource.
public ResourcePersistence ( String resource ) : System
resource String The resource to read from.
return System