Performance Cost Of 'try' in C#

前端 未结 5 1236
名媛妹妹
名媛妹妹 2020-11-28 12:38

I know that exceptions have a performance penalty, and that it\'s generally more efficient to try and avoid exceptions than to drop a big try/catch around everything -- but

5条回答
  •  有刺的猬
    2020-11-28 13:19

    You might want to read up on Structured Exception Handling. It's Window's implementation of exceptions and used in .NET.

    http://www.microsoft.com/msj/0197/Exception/Exception.aspx

提交回复
热议问题