ReSharper and Code Contracts
I just ran into this today. It makes ReSharper shut up about possible null references when you use Code Contracts in your C#/VB projects.
The XML file provided there is not complete, however. I’ve added the ContractInvariantMethodAttribute and ContractClassForAttribute attributes to the annotations so that ReSharper won’t claim that your contract classes and invariant methods are unused.
The XML is here.
Just drop this into C:\Program Files (x86)\JetBrains\ReSharper\v5.1\Bin\ExternalAnnotations\mscorlib as Microsoft.Contracts.xml or so.
Free graphics, 3d, code snippets, PHP, HTML, JavaScript and more!…
[...]ReSharper and Code Contracts « Zor's Blog[...]…
Free graphics, 3d, code snippets, PHP, HTML, JavaScript and more! - November 19, 2011 at 19:12 |
Money Maker…
[...]ReSharper and Code Contracts « Zor's Blog[...]…
Money Maker - December 13, 2011 at 23:45 |