35 lines
731 B
C#
35 lines
731 B
C#
using System;
|
|
using System.IO;
|
|
|
|
namespace Lucidiot.Raima {
|
|
public class NullDatabaseStorage : IDatabaseStorage {
|
|
#region IDatabaseStorage Members
|
|
|
|
public bool CanRead {
|
|
get { return true; }
|
|
}
|
|
|
|
public bool CanWrite {
|
|
get { return true; }
|
|
}
|
|
|
|
public bool Exists(string fileName) {
|
|
return false;
|
|
}
|
|
|
|
public BinaryReader GetReader(string fileName) {
|
|
return new BinaryReader(Stream.Null);
|
|
}
|
|
|
|
public BinaryWriter GetWriter(string fileName) {
|
|
return new BinaryWriter(Stream.Null);
|
|
}
|
|
|
|
public void Delete(string fileName) {
|
|
return;
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|