One feature I really liked in Java that isn\'t in C# is checked exceptions. Is there any way to simulate (maybe via stylecop?) or turn on checked exceptions in Visual Studi
Far as I know, there's no way to do checked exceptions in C#. That feature (or a bug, depending on how you look at it :)) is not supported by the language.
Your best bet would be to add XML comments to your method, include the exceptions thrown by it and hope whoever calls your code reads the documentation.
Something like this:
///
/// This is my method that does stuff.
///
/// This stuff can't be done!
public void DoStuff()
{
// do stuff
}