I realize the value of this warning so I don't want to turn it off, but I have a common pattern in my code that causes this warning to show up a lot when using a DbDataReader to read results from a database I get:
byte data = new byte[reader.GetBytes(0, 0, null, 0, 0)];
reader.GetBytes(0, 0, data, 0, data.Length); // this line gives me the warning since I'm ignoring the return value
Am I doing something wrong here? It seems like ReSharper shouldn't produce this warning for calls that have array parameters (or other non primitive types).