Java exception to C# exception equivalent

java.lang.IllegalStateException replaced with
System.InvalidOperationException