March 2004
Intermediate to advanced
560 pages
26h 47m
English
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
Read now
Unlock full access