Comments (3)
Here is the source that got filtered out:
namespace TestName
{
/// <summary>
/// Class that defines values for the Galil C Library return codes.
/// </summary>
/// <remarks>
/// The following is a list of error code ordered by its value
/// <list type="table">
/// <listheader>
/// <term>Error Code Flag</term>
/// <term>Error Code Value</term>
/// <term>Description</term>
/// </listheader>
/// <listheader>
/// <term><c><see cref="G_NO_ERROR"/></c></term>
/// <term>0</term>
/// <term><inheritdoc cref="G_NO_ERROR" select="summary"/></term>
/// </listheader>
/// <listheader>
/// <term><c><see cref="G_NO_ERROR"/></c></term>
/// <term>0</term>
/// <term><inheritdoc cref="F:TestName.TestClass.G_NO_ERROR" select="summary"/></term>
/// </listheader>
/// </list>
/// </remarks>
public static class TestClass
{
/// <summary>Return value if function succeeded.</summary>
public const Int32 G_NO_ERROR = 0;
/// <summary>
/// General library error. Indicates internal API caught an unexpected error. Contact Galil support if this error is returned, [email protected].
/// </summary>
public const Int32 G_GCLIB_ERROR = -1;
}
}
from shfb.
I had to go back and look at the documentation for inheritdoc. When used in a nested element, it inherits the parent elements in the filter if the expression isn't rooted. So, in your example, it's actually looking for remarks/list/listheader/term/summary. In order to force it to look at the root, you need to include the leading backslash and use the node() method to tell it where to get the comments.
The API filter should work. Another alternative is to add exclude elements to the members. An example for both this and the issue above is shown below.
Since these are integer values, another alternative would be to use an enumeration which solves both issues and gives you the format you want without having to keep the table in synch with the members. However that would probably be a breaking change. An example is shown below too.
namespace TestName
{
/// <summary>
/// Class that defines values for the Galil C Library return codes.
/// </summary>
/// <remarks>
/// The following is a list of error code ordered by its value
/// <list type="table">
/// <listheader>
/// <term>Error Code Flag</term>
/// <term>Error Code Value</term>
/// <term>Description</term>
/// </listheader>
/// <item>
/// <term><c>G_NO_ERROR</c></term>
/// <term>0</term>
/// <term><inheritdoc cref="G_NO_ERROR" select="/summary/node()" /></term>
/// </item>
/// <item>
/// <term><c>G_GCLIB_ERROR</c></term>
/// <term>-1</term>
/// <term><inheritdoc cref="G_GCLIB_ERROR" select="/summary/node()" /></term>
/// </item>
/// </list>
/// </remarks>
public static class TestClass
{
/// <summary>Return value if function succeeded.</summary>
/// <exclude />
public const Int32 G_NO_ERROR = 0;
/// <summary>
/// General library error. Indicates internal API caught an unexpected error. Contact Galil support if this error is returned, [email protected].
/// </summary>
/// <exclude />
public const Int32 G_GCLIB_ERROR = -1;
}
/// <summary>
/// Test enum
/// </summary>
public enum TestEnum
{
/// <summary>Return value if function succeeded.</summary>
G_NO_ERROR = 0,
/// <summary>
/// General library error. Indicates internal API caught an unexpected error. Contact Galil support if this error is returned, [email protected].
/// </summary>
G_GCLIB_ERROR = -1
}
}
from shfb.
Thank you for your quick and helpful response again. Both the solution and enum idea works out great. Even though I like the enum solution, we will end up using constants due to number of casting happens in the code when checking error code returns from C DLL.
Thank you again for your time and support.
from shfb.
Related Issues (20)
- Nested `private protected` types incorrectly included in documentation HOT 2
- C# `init` property accessors documented as `set` HOT 3
- Please document methods parameters regardless syntax filters setup HOT 2
- BE0066: ResolveReferenceLinksComponent: [...] Member ID URL resolver service failed. HOT 5
- `See` element and override within sealed class HOT 2
- Easy to conflict with Microsoft.Help.F1 HOT 4
- autoOutline differences between Default2022 and VS2013 styles HOT 5
- [Question] My help file builds successfully but only has one namespace HOT 4
- Cannot install extension on arm64 HOT 1
- Enable TOC using current presentation style HOT 4
- TOC overlaying wide content HOT 4
- Building with NuGet tools with MsBuild is broken in Visual Studio HOT 4
- Numeric constant formatting for enumeration to allow searching for constant HOT 2
- Error BE0065: An error occurred while attempting to transform the reflection data to a topic. When Extensions Methods to Enum. HOT 3
- Some types excluded from documentation? HOT 3
- Documenting a `net8.0` project when using `msbuild.exe` HOT 3
- Linux/Docker builds HOT 5
- An error occurred while attempting to transform the reflection data to a topic. The error message was: System.NullReferenceException HOT 3
- Problem with installer when only VS 2022 is installed. HOT 4
- Support for Nuget Central Package Management
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shfb.