NotImplementedException

NotImplementedException ECMA 1.0, serializable

System (mscorlib.dll) class

This exception signals an attempt to access an unimplemented method or operation.

Suppose you have a base class with a number of unimplemented methods. You may have reason not to mark them as abstract (perhaps you want to let programmers develop subclasses that only implement some of the base class methods). You can throw this exception in those methods , letting users of the subclass know that they are not implemented.

 public class  NotImplementedException  : SystemException {  // Public Constructors  public  NotImplementedException  ( );    public  NotImplementedException  (string   message   );    public  NotImplementedException  (string   message   , Exception   inner   );  // Protected Constructors  protected  NotImplementedException  (System.Runtime.Serialization.SerializationInfo   info   ,         System.Runtime.Serialization.StreamingContext   context   ); } 

Hierarchy

Object Exception(System.Runtime.Serialization.ISerializable) SystemException NotImplementedException



C# in a Nutshell
C # in a Nutshell, Second Edition
ISBN: 0596005261
EAN: 2147483647
Year: 2005
Pages: 963

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net