mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-08-06 10:18:30 +02:00
Use new ArgumentNullException and ObjectDisposedException throw-helper API (#4163)
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user