In Java i can explicitly specify that a method throws an exception like:
public void read() throws IOException{}
What is the c# equivalent of this?
What are the best practices for throwing custom exceptions?
I have made them serializable and provided a streaming context also .
What you’re referring to is the actual documentation of code that throws exceptions.
Read this thread that discusses this question: How to document thrown exceptions