diff --git a/src/DotNet/ICodedToken.cs b/src/DotNet/ICodedToken.cs
index a592c9ccf..975f95c90 100644
--- a/src/DotNet/ICodedToken.cs
+++ b/src/DotNet/ICodedToken.cs
@@ -613,7 +613,7 @@ static internal IAssembly GetDefinitionAssembly(this MemberRef mr) {
/// this
/// Normal visible parameter index
///
- public static TypeSig GetParam(this IMethod method, int index) => method?.MethodSig?.Params[index];
+ public static TypeSig GetParam(this IMethod method, int index) => method?.MethodSig.GetParams() is { } types && index >= 0 && index < types.Count ? types[index] : null;
}
///