你的位置: 码友网首页 / 资讯源列表 / Stop throwing Exceptions! Start being Explicit

关于[Stop throwing Exceptions! Start being Explicit]的摘要:

If you’re writing a library for other developers to consume on NuGet or if you’re creating an API within your own project, stop throwing exceptions and start being explicit. Exceptions are like landmines. Consuming callers have absolutely no idea what exceptions you might throw or how/when/why they will step on one. C# is dishonest when it comes to looking at method signatures.

原文地址: https://codeopinion.com/stop-throwing-exceptions-start-being-explicit/

收录时间: 2020-07-23 浏览量: 1276 分类: .NET

| 0 收藏 | 0