Hi,

I am writing a C# program that runs every night as a scheduled task. When I get specific errors that are non-recoverable, I want to write a log entry and abort further processing. So far, I've yet to discover how to do this (googling and a coupe of C# books to no avail). My background is Java and there the command is simply "System.exit(0)". It exits the program immediately, which is just what I want to do in C#. What is the C# equivalent?

Thanks,
Rob