Example
using System; namespace Samples { public class NotImplementedExceptionSample { public static void NotImplementedMethod(float f) { throw new NotImplementedException(); } public static void Main() { try { NotImplementedMethod(0); } catch(NotImplementedException e) { Console.WriteLine("Exception: {0}", e); } } } }
Exception: System.NotImplementedException: The method or operation is not implemented. at Samples.NotImplementedExceptionSample.NotImplementedMethod(Single f) in C:\Books\BCL\Samples\System\NotImplementedException\NotImplementedException.cs:line 9 at Samples.NotImplementedExceptionSample.Main() in C:\Books\BCL\Samples\System\ NotImplementedException\NotImplementedException.cs:line 15
Get .NET Framework Standard Library Annotated Reference, Volume 1: Base Class Library and Extended Numerics Library now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.