Monday, November 5, 2012

default xml doc comments for c# method parameters

Ever need to quickly generate xml doc comments for C# method parameters? In VS 2010 this can be done with a regular expression find-and-replace.

The “find what” expression: \<param name="{:i}"\>:b*\</param\>

The “Replace with” expression: <param name="\1">The \1.</param>

csharp-method-param-xml-doc-comment-find-and-replace

Not exactly particularly meaningful but it’ll cut down on stylecop warnings…

No comments :

Post a Comment