未验证 提交 4abfe7c1 编写于 作者: S Stephen Toub 提交者: GitHub

Use ArgumentNullException.ThrowIfNull in a few more places (#70897)

上级 cae8546c
......@@ -118,10 +118,7 @@ public ActiveDirectorySchemaProperty(DirectoryContext context, string ldapDispla
}
}
if (ldapDisplayName == null)
{
throw new ArgumentNullException(nameof(ldapDisplayName));
}
ArgumentNullException.ThrowIfNull(ldapDisplayName);
if (ldapDisplayName.Length == 0)
{
......@@ -294,10 +291,7 @@ public static ActiveDirectorySchemaProperty FindByName(DirectoryContext context,
}
}
if (ldapDisplayName == null)
{
throw new ArgumentNullException(nameof(ldapDisplayName));
}
ArgumentNullException.ThrowIfNull(ldapDisplayName);
if (ldapDisplayName.Length == 0)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册