Closed ElektroKill closed 1 year ago
ParameterList created a GenericInstSig if declaring type is generic, while Instruction.GetArgumentType did not.
ParameterList
GenericInstSig
Instruction.GetArgumentType
https://github.com/0xd4d/dnlib/blob/8558fa74e2382fe8acfecbbb04e3a48e07e01953/src/DotNet/ParameterList.cs#L122-L138
https://github.com/0xd4d/dnlib/blob/8558fa74e2382fe8acfecbbb04e3a48e07e01953/src/DotNet/Emit/Instruction.cs#L747-L748
if declaringType is TypeSpec we trust the user to provide the proper instantiated type!
declaringType
TypeSpec
ParameterList
created aGenericInstSig
if declaring type is generic, whileInstruction.GetArgumentType
did not.https://github.com/0xd4d/dnlib/blob/8558fa74e2382fe8acfecbbb04e3a48e07e01953/src/DotNet/ParameterList.cs#L122-L138
https://github.com/0xd4d/dnlib/blob/8558fa74e2382fe8acfecbbb04e3a48e07e01953/src/DotNet/Emit/Instruction.cs#L747-L748
if
declaringType
isTypeSpec
we trust the user to provide the proper instantiated type!