[Mono-list] Stub implementations in the library.

Miguel de Icaza miguel@ximian.com
11 Nov 2001 16:57:09 -0500


Hello guys,

    I would like to make a suggestion and a request to those of you
working on the class libraries.  Whenever there is a piece of code that
is not implemented (a skeleton function, a stubbed implementation, a
TODO item or anything like that), it would be very convenient if you
throw an exception at that point.

    You can do it like this:

string GetSomething ()
{
	throw new NotImplementedException ("System.GetSomething");
}

    The reason for this is that someone might be debugging his code and
depending on a method call from your method.  And might spend a long
time trying to figure out why something in his code is not working,
instead of getting a nice error message telling him `The underlying code
you depend on, is not finished')

Miguel.