Quantcast
Channel: Can I tag a C# function as "this function does not enumerate the IEnumerable parameter"? - Stack Overflow
Browsing all 4 articles
Browse latest View live

Answer by Andrew Dennison for Can I tag a C# function as "this function does...

Since VerifyArgumentIsNotNull is generic, but does nothing type specific, it can take an object:public static void VerifyArgumentIsNotNull(this object @object, string argumentName) { ... }Resharper...

View Article



Answer by Igal Tabachnik for Can I tag a C# function as "this function does...

Yes, what you're asking is very much possible, but requires a little work. ReSharper uses Code Annotations to add hints to its analysis engine and make more sense of the code it has to work with. I...

View Article

Answer by rtlayzell for Can I tag a C# function as "this function does not...

Assuming you are using Visual Studio 2013/2012 (I'm only aware of this feature in 2013 though) in the code analysis window you should be able to right click the message navigate to Suppress Message...

View Article

Can I tag a C# function as "this function does not enumerate the IEnumerable...

Multiple enumeration of the same enumerable is something that has been a performance problem for us, so we try to stomp those warnings in the code. But there is a generic extension function that we...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images