阅读背景:

是否有内置的.NET异常指示非法对象状态?

来源:互联网 

What exception should I throw if I encounter an illegal state - for instance, an initialization method that should only be called once being called a second time? I don't really see any built-in exception that makes sense. This seems like something that should be in the framework - am I not poking in the right spot?What exception should I throw if I encounter an




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: