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 .