logo
  • 教程列表
  • SO官方文档
  • 命名约定
    • 资本化惯例
    • 枚举
    • 接口
    • 异常
    • 私人领域
    • 命名空间
  1. StackOverflow 文档
  2. C# Language 教程
  3. 命名约定
  4. 异常

异常

Created: November-22, 2018

添加例外作为后缀

自定义异常名称应以“-Exception”为后缀。

以下是正确命名的例外:

public class MyCustomException : Exception
public class FooException : Exception
  • 私人领域
  • 接口

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明