File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,6 +98,18 @@ public override void Relink(PropertyDefinition property)
9898 property . PropertyType = ICollectionGen ;
9999 }
100100
101+ public override void Relink ( MethodDefinition method , VariableDefinition variable )
102+ {
103+ if ( variable . VariableType is ArrayType arrayType && arrayType . ElementType . FullName == this . Type . FullName )
104+ variable . VariableType = ICollectionGen ;
105+ }
106+
107+ public override void Relink ( MethodDefinition method , ParameterDefinition parameter )
108+ {
109+ if ( parameter . ParameterType is ArrayType arrayType && arrayType . ElementType . FullName == this . Type . FullName )
110+ parameter . ParameterType = ICollectionGen ;
111+ }
112+
101113 public override void Relink ( MethodBody body , Instruction instr )
102114 {
103115 if ( body . Method . ReturnType is ArrayType arrayType && arrayType . ElementType . FullName == this . Type . FullName )
You can’t perform that action at this time.
0 commit comments