Export (0) Print
Expand All

<c> (Visual C++)

The <c> tag indicates that text within a description should be marked as code. Use <code> to indicate multiple lines as code.

<c>text</c>

text

The text you want to indicate as code.

Compile with /doc to process documentation comments to a file.

// xml_c_tag.cpp
// compile with: /doc /LD
// post-build command: xdcmake xml_c_tag.dll

/// Text for class MyClass.
class MyClass {
public:
   int m_i;
   MyClass() : m_i(0) {}

   /// <summary><c>MyMethod</c> is a method in the <c>MyClass</c> class.
   /// </summary>
   int MyMethod(MyClass * a) {
      return a -> m_i;
   }
};

Community Additions

ADD
Show:
© 2014 Microsoft