![]() | Storage Class |
Namespace: DigitalRune.Storages
The Storage type exposes the following members.
Name | Description | |
---|---|---|
![]() | Dispose |
Releases all resources used by an instance of the Storage class.
|
![]() | Dispose(Boolean) |
Releases the unmanaged resources used by an instance of the Storage class
and optionally releases the managed resources.
|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetRealPath |
Gets the real path and name of the specified file.
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OpenFile |
Opens the specified file for reading.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() | DirectorySeparator |
Gets the directory separator character used natively by this storage.
|
![]() | IsDisposed |
Gets a value indicating whether this instance has been disposed of.
|
![]() |
---|
DigitalRune.Storages currently only provides read access to files! Full read/write access, as well as support for additional platforms, will be added in a future version. |
The IStorage interface provides a common API to access files from different sources. The following implementations provide access to physical file systems on different platforms:
Some storages are built on top of other storages. For example:
Case-Sensitivity:
File retrieval is case-sensitive if the storage provider (e.g. the platform OS) is
case-sensitive. It is recommended to assume case-sensitivity to ensure that applications can
be ported to non-Windows platforms.
Directory Separator:
Storages accepts '\' and '/' as directory separators. Internally, paths are normalized to use
'/'.
Possible Extensions:
The IStorage concept is highly extensible. Developers can provide custom
IStorage implementations to add support for new platforms or manipulate existing
storages. Here are just a few features that could be implemented on top of
IStorage: