Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
たとえば、BitConverter.GetBytes メソッド (Int64)もXmlUrlResolver コンストラクターも、例外をスローするものとして文書化されていません。戻り値を使用してエラーを示していますか?
ロジックがエラーを発生させない場合、メソッドは例外をスローする必要はありません。BitConverter.GetBytesこれは;の場合は明らかです。Int64変換は、どの値でも成功することが保証されています。
BitConverter.GetBytes
Int64
またはなど、任意のメソッドによってスローされる可能性のある壊滅的な例外がいくつかあります。OutOfMemoryExceptionStackOverflowException
OutOfMemoryException
StackOverflowException