logo
  • 教程列表
  • SO官方文档
  • 诊断断言
    • 参数检查
    • 确保项目处于编辑模式
    • 确保两个值相等
    • 确保值为 true 或 false
    • ResultNotNull
    • 必需对象
    • NullEmpty 检查
    • 安全断言
  1. StackOverflow 文档
  2. sitecore 教程
  3. 诊断断言
  4. 必需对象

必需对象

Created: November-22, 2018

这将检查给定对象是否为 null,然后抛出 RequiredObjectIsNullException(如果是)。

Assert.Required(parameter, "parameter is required.");
  • NullEmpty 检查
  • ResultNotNull

Copyright © 2018. All right reserved

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

  • 关于我们
  • 免责声明