Do not expose generic lists IF all my methods, need to expose a collection, then 开发者_如何学PythonI need to user the Linq Extension .ToList(), almost everywhere I need to use lists, or user Collect
Running FxCop on a WebProject that contains a UserControl will result in a CA2000 Warning (Call System.IDisposable.Dispose on object) for every ServerControl (Label, TextBox,...) in that UserCon开发者
I\'m writing a T4 template which loads some classes from an assembly, does some analysis of the classes and then generates some code. One particular bit of analysis I need to do is to determine whethe
These 3 types of lock are apparently bad. What other type of locking is bad? Are there Stylecop / FxCop rules that would catch this?
We are using FxCop and it generates too many false positives to our liking. For instance, if a private method is invoked using reflection, then this method is reported as potentially unused - understa
I\'ve recently upgraded my project from Visual Studio 2008 to Visual Studio 2010. By enabling Code Analysis and compiling in Release, I\'m getting warning CA1806: Do not ignore method results.
I have a very simple code (simplified from the original code - so I know it\'s not a very clever code) that when I compile in Visual Studio 2010 with Code Analysis gives me warning CA1062: Validate ar
I\'ve recently upgraded my project from Visual Studio 2008 to Visual Studio 2010. By enabling Code Analysis, I\'m getting a lot of warnings resulted in rule CA2204: Literals should be spelled correct
I can see that we can enable code analysis in Visual Studio Team Systems. But i am using Visual Studio 2010 Professional.
In VB.net the ANDALSO and ORELSE keywords should basically always be prefered over the AND and OR keywords.