Implement Abstract Class in Visual Studio

Visual Studio is most powerful IDE, it has several intellisense features to increase developers productivity. Implement Abstract Class is one of the VS Intellisense command which will generate all abstract methods skeleton in just 2 clicks, so that one can quickly implement those methods.

c4c

With help of Visual Studio Intellisense option “Implement Abstract Class” you can generate all abstract methods Skelton to increase you productivity.

Use of this feature is very simple, just put mouse pointer by clicking on abstract base method in you derived class, it will display only option “Implement Abstract Method”. Now click on that option it will generate complete abstract methods, properties skeleton.

For example, i want to make MyStream class by extending .net Stream class

implement-abstract-class

Just by clicking it will generate whole skeleton as shown below

public class MyStream : Stream
{
public override bool CanRead
{
get { throw new NotImplementedException(); }
}
public override bool CanSeek
{
get { throw new NotImplementedException(); }
}
public override bool CanWrite
{
get { throw new NotImplementedException(); }
}
public override void Flush()
{
throw new NotImplementedException();
}
public override long Length
{
get { throw new NotImplementedException(); }
}
public override long Position
{
get
{
throw new NotImplementedException();
}
set
{
throw new NotImplementedException();
}
}
public override int Read(byte[] buffer, int offset, int count)
{
throw new NotImplementedException();
}
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)
{
throw new NotImplementedException();
}
}