aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Translation/DelegateHelper.cs
diff options
context:
space:
mode:
authorBerkan Diler <berkan.diler1@ingka.ikea.com>2022-12-27 20:27:11 +0100
committerGitHub <noreply@github.com>2022-12-27 20:27:11 +0100
commit0d3b82477ecbf7128340b6725a79413427c68748 (patch)
tree2d62c68e38a3c4c79ef7cc1d92700617a40e70ca /ARMeilleure/Translation/DelegateHelper.cs
parent470be03c2ff22346a1f0ae53fa25f53c4d1790b5 (diff)
Use new ArgumentNullException and ObjectDisposedException throw-helper API (#4163)1.1.493
Diffstat (limited to 'ARMeilleure/Translation/DelegateHelper.cs')
-rw-r--r--ARMeilleure/Translation/DelegateHelper.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/ARMeilleure/Translation/DelegateHelper.cs b/ARMeilleure/Translation/DelegateHelper.cs
index f021d116..43a39bab 100644
--- a/ARMeilleure/Translation/DelegateHelper.cs
+++ b/ARMeilleure/Translation/DelegateHelper.cs
@@ -25,10 +25,7 @@ namespace ARMeilleure.Translation
public static Delegate GetDelegate(MethodInfo info)
{
- if (info == null)
- {
- throw new ArgumentNullException(nameof(info));
- }
+ ArgumentNullException.ThrowIfNull(info);
Type[] parameters = info.GetParameters().Select(pI => pI.ParameterType).ToArray();
Type returnType = info.ReturnType;