Товарищи, помогите понять в чем проблема в коде ниже
[more=Код]
using System;
using System.IO;
using System.Net.Sockets;
namespace MyFtpClient
{
internal class FtpWebStream:Stream
{
private FtpWebResponse response;
private NetworkStream nStream;
public FtpWebStream(NetworkStream data, FtpWebResponse ftpResponse)
{
this.response = ftpResponse;
this.nStream = data;
}
public override void Close()
{
response.Close();
base.Close();
}
public override int Read(byte[] buffer, int offset, int count)
{
return nStream.Read(buffer, offset, count);
}
public override long Seek(long offset, SeekOrigin origin)
{
throw new NotImplementedException();
}
public override void SetLength(long value)
{
throw new NotImplementedException();
}
public override void Write(byte[] buffer, int offset, int count)
{
nStream.Write(buffer, offset, count);
}
public override bool CanSeek
{
get { return false; }
}
public override bool CanRead
{
get { return nStream.CanRead; }
}
public override bool CanWrite
{
get { return nStream.CanWrite; }
}
public override long Length
{
get { throw new NotImplementedException(); }
}
public override long Position
{
get
{
throw new NotImplementedException();
}
set
{
throw new NotImplementedException();
}
}
}
}
[/more]
Компилятор выдает ошибку
Код:
'MyFtpClient.FtpWebStream' does not implement inherited abstract member 'System.IO.Stream.Flush()' C:\Users\Roman\documents\visual studio 2010\Projects\MyFtpClient\MyFtpClient\FtpWebStream.cs
[more=Код]
using System;
using System.IO;
using System.Net.Sockets;
namespace MyFtpClient
{
internal class FtpWebStream:Stream
{
private FtpWebResponse response;
private NetworkStream nStream;
public FtpWebStream(NetworkStream data, FtpWebResponse ftpResponse)
{
this.response = ftpResponse;
this.nStream = data;
}
public override void Close()
{
response.Close();
base.Close();
}
public override int Read(byte[] buffer, int offset, int count)
{
return nStream.Read(buffer, offset, count);
}
public override long Seek(long offset, SeekOrigin origin)
{
throw new NotImplementedException();
}
public override void SetLength(long value)
{
throw new NotImplementedException();
}
public override void Write(byte[] buffer, int offset, int count)
{
nStream.Write(buffer, offset, count);
}
public override bool CanSeek
{
get { return false; }
}
public override bool CanRead
{
get { return nStream.CanRead; }
}
public override bool CanWrite
{
get { return nStream.CanWrite; }
}
public override long Length
{
get { throw new NotImplementedException(); }
}
public override long Position
{
get
{
throw new NotImplementedException();
}
set
{
throw new NotImplementedException();
}
}
}
}
[/more]
Компилятор выдает ошибку
Код:
'MyFtpClient.FtpWebStream' does not implement inherited abstract member 'System.IO.Stream.Flush()' C:\Users\Roman\documents\visual studio 2010\Projects\MyFtpClient\MyFtpClient\FtpWebStream.cs