July 06, 2024

I managed to totally confuse Visual Studio's IntelliSense, in a simple class

I managed to totally confuse Visual Studio's IntelliSense, in a simple class

I sinned! I always document my public fields and methods. This time, it was no different: I typed a triple slash and expected VS to create a correct template for the method comment, but it was different.

Imagine this: if your void method comes immediately after public:, then /// will create a template with returns element in it. WTF?

The plot thickens: if your method comes after a blank string, then it will only contain summary element but no parameters.

Having become intrigued, I proceeded to experiment with different permutations of methods, access specifiers, return types, and parameters and realized that it is even worse: VS creates a document template for a wrong method!

Microsoft, for fuck's sakes, test your software before you release it, once in a lifetime!

Posted by: LinuxLies at 07:22 AM | No Comments | Add Comment
Post contains 153 words, total size 1 kb.




What colour is a green orange?




15kb generated in CPU 0.0064, elapsed 0.0469 seconds.
35 queries taking 0.0425 seconds, 139 records returned.
Powered by Minx 1.1.6c-pink.