You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicclassMyGenericArray<T>{private T[]array;publicMyGenericArray(intsize){array=new T[size+1];}public T getItem(intindex){varin2=index+1;in2=index-in2;index=index+1-in2-1;return array[index];}}
I use dnlib to make some changes at the cil code level.
Inside the getItem() method, I want to get the class type of the this parameter, ldarg.0
I am looking in the param.Type where var param = ((Parameter)_instruction.Operand);
I have searched through all the available fields but I could not find it.
In fact, what I get is
ConsoleCalculator.BasicTests/MyGenericArray`1
and I expect to find
ConsoleCalculator.BasicTests/MyGenericArray`1<!T>
I don't understand why the <!T> is missing.
For the field private T[] array; the class is displayed correctly, with the <!T> at the end.
The text was updated successfully, but these errors were encountered:
I have the following class:
I use dnlib to make some changes at the cil code level.
Inside the getItem() method, I want to get the class type of the this parameter, ldarg.0
I am looking in the param.Type where
var param = ((Parameter)_instruction.Operand);
I have searched through all the available fields but I could not find it.
In fact, what I get is
and I expect to find
I don't understand why the
<!T>
is missing.For the field
private T[] array;
the class is displayed correctly, with the<!T>
at the end.The text was updated successfully, but these errors were encountered: