Say I have a method signature like this:
protected override void Initialize(params object[] parameters)
... and the object can accurately handle all the parameters. When I do the validation of these parameters (say setting them to fields of the class) and one is null
, I'd like to be able to do something like this without a warning from ReSharper:
if (parameters[5] == null)
/* Yields: Cannot resolve symbol 'knownParameterName' */
throw new ArgumentNullException("knownParameterName");
In the context of my app, this warning is ok. Does anyone know what rule I need to ignore?