Formatting Part deux
This commit is contained in:
@@ -381,7 +381,8 @@ namespace Torch.Managers.PatchManager
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
ParameterInfo declParam = _method.GetParameters().FirstOrDefault(x => x.Name == param.Name);
|
ParameterInfo declParam = _method.GetParameters().FirstOrDefault(x => x.Name == param.Name);
|
||||||
|
|
||||||
if (declParam == null)
|
if (declParam == null)
|
||||||
throw new Exception($"Parameter name {param.Name} not found");
|
throw new Exception($"Parameter name {param.Name} not found");
|
||||||
int paramIdx = (_method.IsStatic ? 0 : 1) + declParam.Position;
|
int paramIdx = (_method.IsStatic ? 0 : 1) + declParam.Position;
|
||||||
|
Reference in New Issue
Block a user