[Mono-list] Socket code.
Mon, 23 Feb 2004 20:51:36 +1100
On Mon, 2004-02-23 at 19:37, Michal Moskal wrote:
> This ain't C -- for errors you should get exception, not -1.
Not so. According to microsoft's guidelines, it depends on the error -
if it's an error that you expect to get often, there should be a return
code to indicate it. This is because of the performance cost of
There are various examples of this, such as Hashtable returning null if
you ask for a non-existent key and string.IndexOf() returning -1 if the
thing you are searching for is not found.
Iain McCoy <email@example.com>