Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Constructor xml doc in F#?

Tags:

f#

How do you attach xml documentation (you know, the /// kind) to constructors in F#? I'm not surprised that I haven't managed to figure it out for implicit constructors... but I can't even get it to work for explicit constructors. It works fine for the class itself and other members.

like image 877
Jason Avatar asked Oct 01 '09 04:10

Jason


People also ask

How do I read XML documents?

If all you need to do is view the data in an XML file, you're in luck. Just about every browser can open an XML file. In Chrome, just open a new tab and drag the XML file over. Alternatively, right click on the XML file and hover over "Open with" then click "Chrome".

What is XML documentation in C#?

The C# compiler combines the structure of the C# code with the text of the comments into a single XML document. The C# compiler verifies that the comments match the API signatures for relevant tags. Tools that process the XML documentation files can define XML elements and attributes specific to those tools.

How do I create an XML document in Visual Studio?

From the menu bar, choose Tools > Options to open the Options dialog box. Then, navigate to Text Editor > C# (or Visual Basic) > Advanced. In the Editor Help section, look for the Generate XML documentation comments option.

How do I comment out a line in XML?

An XML comment encountered outside the document type declaration is represented by the Comment value syntax element. It contains the comment text from the XML message. If the value of the element contains the character sequence --> , the sequence is replaced with the text --> .


1 Answers

This appears to be a bug (you're right, it does not work). When Beta2 ships, this bug is likely to still be present, but hopefully it will be fixed for the final release of VS2010.

like image 81
Brian Avatar answered Nov 08 '22 23:11

Brian