We need to specify an open generic type name on our web.config file, but when Resharper's Code Inspection is executed, it flags the type declarations with this 'INCORRECT_TYPE_PARAMETER_NUMBER' error.
As I understand it, writting a open generic type like this is supported by the CLR, so it should be also a valid case for Resharper.
For instance, this is one of the offending lines:
<handleDef id="memoryCache" type="CacheManager.SystemRuntimeCaching.MemoryCacheHandle`1, CacheManager.SystemRuntimeCaching" />
The corresponding class correctly has a single type parameter:
public class MemoryCacheHandle<T> : BaseCache<T> where T : class
The whole "MemoryCacheHandle`1" text is underlined in red, and I get an inspection error (cathegory 'XML Errors') with the message being only "INCORRECT_TYPE_PARAMETER_NUMBER".
Perhaps we are looking at two distinct issues here:
- Code Inspection wrongly prohibits open generic type string representations in the config files, even though they are valid .Net constructs
- The message for incorrect number of type arguments seems to be missing
Since we integrated inspectcode.exe in our build validation process, the partially succeded builds are starting to get annoying.
I'd love to hear a way to make this work as intended.