313 questions
0
votes
6
answers
4k
views
How to comment my XML files in Android Studio
I am learning Android and want to be able to add line comments to my XML so I can remind myself what things are doing.
Is there an accepted practice for this, or is it possible in Android Studio? I ...
12
votes
3
answers
2k
views
Visual Studio 2015 missing XML comments / documentation
Is it me or are the XML comments missing for System.Linq in Visual Studio 2015?
Because I can still find it on MSDN.
But when typing, for example, this code:
var list = new List<string>();
list....
0
votes
0
answers
1k
views
Unity XML Documentation Comments how to customise auto-generate
In Unity Monodevelop C#, how do I add a "comment" line top & bottom, so that it auto-generates as part of the XML documentation auto-completion?
Currently, when /// is pressed above the class/...
90
votes
3
answers
43k
views
XML Auto Commenting C# in Visual Studio Code
In MonoDevelop, when I type "///", it auto-generates an xml-style comment like this:
/// <summary>
/// Describes the variable x
/// </summary>
int x = 0;
Is there a way to get this ...
7
votes
1
answer
4k
views
XML Comments - Exceptions not showing in intellisense
I have a method that throws an exception under the namespace: MyApp.Domain. I have some of my custom exceptions under the namespace: MyApp.Domain.Exceptions. So what I have is this:
using MyApp.Domain....
0
votes
1
answer
863
views
C#: Writing summary for properties with different accessors for getter and setter
I'm very disciplined in writing detailed summaries of interfaces, classes, properties and methods. It's while I have in focus to share my code to anyone beeing able to read without any expenses in ...
1
vote
0
answers
724
views
c# xml comment change in visual studio 2015
I am having trouble with an xml comment on a web api controller method. I have a class with several properties as a parameter on this method. When I want to add a description to the properties ...
1
vote
0
answers
327
views
Comment of generic function (C++/CLI) not recognized in C# and Visual Studios' Object Browser
I recognized two issues in commenting (XML style) Visual C++/CLI generic functions. Typed functions behave as expected.
System configuration is Windows 7 and Visual Studio Premium 2013. The project ...
3
votes
0
answers
255
views
Are xml comments in VB still customizable?
Since Visual Studio 2005 we could copy a file named VBXMLDoc.xml into the path: C:\Users\*user*\AppData\Roaming\Microsoft\VisualStudio\*version*\ to define the XML tags available for documentation, ...
0
votes
0
answers
173
views
Visual studio XML comments. UNC path to document instead of http link to webpage
When commenting my code, I know that I can link to a webpage like this:
/// <Refer url="http://microsoft.com/foo/bar.aspx"/>
But is it possible to reference an excel document (for example) on a ...
1
vote
1
answer
43
views
XML: Use comments to manipulate code?
I use XML for configurations but sometimes I want to test new ones and use comments to leave them separated from the rest like this:
<!-- Begin testing block comments -->
<test1>
...
1
vote
1
answer
169
views
Direct Visual Studio F1 keypress to an internal help server for components I have authored
I have my code documented with XML comments and am learning how to use SandCastle to generate html API help documentation. I'm going to publish that html documentation to an internal website.
How ...
1
vote
1
answer
1k
views
c# Intellisense VS2013 tooltip doesn't show XML comments (i try all)
I read all questions about intellisense problems but my intellisense doesn't work.
Visual Studio Ultimate 2013
I don't use any extension like Resharper, ghostdoc and so on
All XML documentation files ...
0
votes
1
answer
521
views
<see cref> XML comment for byte[] without errors
I'm trying to write a <see cref> XML comment for the type byte[].
Unfortunately, the standard syntax:
<see cref="T:System.Byte[]">
causes an error when executing the Remove and Sort ...
20
votes
3
answers
8k
views
Disable warnings for automatic generated code/folder/namespace
I like to have clean, "0 warnings" - projects in C#. This includes my project having XML comments for every public property and class.
Now I use entity framework with migrations (code first). The ...
5
votes
0
answers
2k
views
C# XML Documentation of methods in Abstract classes
I have a generic abstract base class that has some methods on it. Those methods have XML Comments on them as such:
/// <summary>
/// Controller for working with instances of {TModel}
/// &...
5
votes
1
answer
5k
views
warning CS1570: XML comment on 'myclass' has badly formed XML -- 'A name was started with an invalid character.'
I have some C# codes using doxygen comments for some equations. VS2013 should me a warning message
warning CS1570: XML comment on 'myclass' has badly formed XML --
'A name was started with an ...
2
votes
1
answer
278
views
Debugging ASP.NET - Can I copy XML comments to the debug folder?
I have an ASP.NET project which generates an XML documentation file. I'm using Swashbuckle and would like it to be able to reference the XML comments file while debugging.
However, when I run the ...
1
vote
1
answer
205
views
Visual Studio XML comments from .cs to file in database project
Is it possible to create a cref from c# codes to a file in a database project so you can ctrl + click to navigate to it like you can with .cs files?
e.g. Say I have some data access code that uses a ...
1
vote
1
answer
530
views
How do I show content from an included Xml document in Intellisense tooltips using <include> tag
I am trying to declutter my classes that contain a fair amount of code. I want to also document and document well. Unfortunately for me to do this all in one file creates chaos for the eyes personally....
2
votes
0
answers
735
views
How to use XML comments with #if !SYMBOL
I'm trying to use C# XML comments in conjunction with conditional directive.
With #if SYMBOL it works:
/// <summary>Some summary.</summary>
#if SYMBOL
/// <remarks>...
5
votes
1
answer
283
views
How can I merge XML comments back into a .cs file?
Extracting comments out of C# class files is relatively easy (see Extracting doc comments from C# source file), but I've recently come into the opposite problem.
My project has a bunch of classes ...
76
votes
4
answers
33k
views
How do I comment attributes inside an XML tag?
Is it possible to comment one or several attributes inside an XML tag? Something like /* */ from C.
I have tried using <!-- -->, but it was unsuccessful.
<element
attribute1="value1"
...
7
votes
1
answer
13k
views
"Tag start is not closed" when commenting inside XML element's start and end tag
<!-- Comment --> is the way to add comments in an XML file. Doesn't that actually means, that this part is not "compiled"?
However, when I do something like this:
<item android:id="@+id/...
14
votes
1
answer
3k
views
Reference TFS work item from code comment
In Visual Studio (2012+) I want a clickable reference from a code comment to a TFS work item.
Is there a simple way to do this, and is this also possible from comments within the body of a function (...
2
votes
2
answers
175
views
Transform adjacent comments into xs:annotations in XSDs
I have a XSD that has a number of comments, which should be moved into the a xs:annotation/xs:documentation part of the preceding xs:simpleTypes or xs:complexTypes. How can I move these comments using ...
1
vote
1
answer
145
views
Add Line in Sandcastle generated example code
I want to add a line in Sandcastle generated example code
This is what i have written so far
/// <summary>
/// Represents the SQL Connection for interaction with the Database
/// </summary&...
8
votes
3
answers
4k
views
Escape pointy brackets in C# XML comments
I'm writing a simple compare function with the following signature:
/// <summary>
/// Casts two unsigned integers to signed integers and compares them
/// </summary>
/// <param ...
2
votes
1
answer
773
views
Visual studio XML comment for generics
How can I write this in a proper way:
/// <summary>
/// Provides extension methods for <see cref="System.Collections.Generic.Dictionary"/> matrix.
/// </summary>
public static class ...
2
votes
1
answer
86
views
How to generate an XML with comments with CakePHP?
CakePHP provides a functionality to generate XML documents/strings from an array (s. CakePHP docu -> Core Libraries -> Utilities -> Xml -> Transforming an array into a string of XML).
Simple example:
...
6
votes
1
answer
492
views
Doxygen documentation after members and XML commands
I am trying to get the best out of doxygen and IntelliSense, and found the XML commands to be a pretty good win here: documentation get generated on one hand, while it appears during completion on the ...
3
votes
0
answers
190
views
JavaScript Intellisense - Field of the same type as surrounding object
In an MVC 4 ASP.Net project I have the following JavaScript file:
Foo = function () {
///<field name="bar" type="Foo" mayBeNull="true"></field>
this.bar = null;
}
Foo.prototype....
1
vote
0
answers
196
views
XML commet for return collection of type T [duplicate]
I would like specify in XML comments that method return collection of IEnumerable<FileInfo>.
What is correct format for XML tag <returns/>.
/// <summary>
/// Extensions methods ...
0
votes
1
answer
82
views
Cannot see xml comments from dll in a project
I created a .dll with xml commented functions and subs, like:
''' <summary>
''' Gets the Path of this assembly
''' </summary>
''' <returns>Assemblypath</returns&...
9
votes
1
answer
1k
views
How to refer to an extension method of a generic class in XML comments
What is the proper XML-comment syntax to refer to the SingleOrDefault extension method on the IEnumerable interface?
My latest attempt is:
<see cref="IEnumerable{T}.SingleOrDefault{T}()"/>
The ...
4
votes
1
answer
1k
views
Display XML comments generic params in Intellisence for static method
I'm having trouble getting the generic parameters for the two methods below to display the types in Intellisence.
For the IEnumerable<T> I just simply want it to show as double.
And for the ...
0
votes
1
answer
172
views
Adding cell comments from raw xml for Excel 2007 using java
I need to create cell comments for existing excel file by extracting the xlsx file and using raw XML file.
Is it possible to do it in java without using Apache poi library?
0
votes
2
answers
462
views
XML Comments for nullable 2D Array
How do I correct specify the XML Comments for a 2D array of nullable doubles? The following gives me syntax error.
/// <returns>The <see cref="double[,]"/>.</returns>
public double?[...
0
votes
0
answers
94
views
Warnings for bad XML comments - How to enable?
I want warnings for bad XML comments. They're turned on in Project Options and there are no Compiler Directives inside the unit with the bad xml comments, but I'm not getting any warnings. What else ...
9
votes
1
answer
1k
views
How to explicitly document that a method does not throw exceptions
Using XML comments in C#, I can document that a method may throw an exception:
<exception cref="FooException">Thrown if foo is invalid.</exception>
However, if a method has no exception ...
10
votes
2
answers
2k
views
How/under which circumstances does the <see> tag in Delphi xml comments actually work?
I wonder how these XML references work, I'm just not getting why they work or why they don't work and I found nothing about that.
Here's an example:
type
TOuterClass= class
strict private
...
1
vote
2
answers
698
views
Outputting an ASP.NET Web Site's XML Comments
I would like to document my VB.NET web site's source code.
How can I convert XML comments in a VB.NET ASP.NET web site to an XML documentation file?
I do not see an option to generate an XML ...
1
vote
1
answer
810
views
Visual Studio 2010 Tooltip Comments for C++ methods
My question
How do I write comments for my class methods in C++ using Microsoft Visual Studio 2010 and make them appear in the tooltip? Maybe it should work, but I do not see my comments appear in ...
2
votes
2
answers
166
views
Preserve comments when Overriding
Is there a way (tool, or something) that permits do not duplicate the same XML comments when inheriting/Overriding methods from the base classes?
Eg.:
/// <summary>
/// Represent a brand new ...
1
vote
2
answers
108
views
How do I put XML code into IntelliSense comments? [duplicate]
I have the following code block.
/// <summary>
/// AMethod produces this XML:
/// <A><B></B></A>
/// </summary>
public void AMethod()
{
...
2
votes
3
answers
2k
views
EntityFramework t4 template - XML documentation
I have the following problem with my EDMX file.
In it I have written some Documentation for the properties as well as the Entities, but the t4 template of my EF 5 doesnt generate those values.
My ...
2
votes
0
answers
1k
views
How to add comment to end of XmlDocument in C# when returned from ASMX Webservice
I have the following class;
[XmlRoot("Customer")]
public class MyClass
{
[XmlElement("CustId")]
public int Id {get;set;}
[XmlElement("CustName")]
public string Name {get;set;}
}
I ...
2
votes
1
answer
810
views
XML comments in NuGet package
How do I publish the xml-comments with my assemblies in a NuGet Package so that consumers can see class / method comments?
14
votes
5
answers
7k
views
Should you XML Comment on private methods?
So I use XML Comments in my code to help explain Public Methods and Public Members, another developer has mentioned that not all of my methods have XML Comments. I use the rule, if public or protected,...
7
votes
5
answers
1k
views
Why do I need to use these nasty comments in C# / .Net code? [closed]
I'm building application and one of requirements is to use a comments like this one:
/// <summary>
/// Creates new client.
/// </summary>
/// <param name="uri">The URI.</param>...