Hi?
I'm creating a DLL that is inherting from FileStream.
This compiles but when I use the DLL in an application, I cannot see the ReadString method.Code:...
public class File : FileStream
{
...
// Read in bytes from a FileStream and puts them into a string object.
public string ReadString(int size)
{
byte[] array = new byte[size];
if(base.Read(array, 0, size) >= 0)
{
// Work with the array here.
}
}
}
If I attempt to make this method static (as in normal DLLs), I'm presented with the following error:
"keyword 'base' is not availble in a static method". :ehh:
How can I (or even can I) inherit from FileStream in a DLL and make my own methods available?
Thanks
-Blake
