IL2010: Invalid value on a method substitution
Cause
The value used in a substitution file for replacing a method's body does not represent a value of a built-in type or match the return type of the method.
Rule description
Substitution files
are used to instruct the trimmer to replace specific method bodies with a throw statement or to
return constant statements.
The value passed to the value argument of a method element could not be converted by
the trimmer to a type matching the return type of the specified method.
Example
<!-- IL2010: Invalid value for 'MyType.MyMethodReturningInt()' stub -->
<linker>
<assembly fullname="MyAssembly">
<type fullname="MyType">
<method name="MyMethodReturningInt" body="stub" value="NonNumber" />
</type>
</assembly>
</linker>
Feedback
Issottometti u ara feedback għal