列挙のためのインテリセンスとVS 2008の仕事にXMLコメントを作成するには?
-
20-09-2019 - |
質問
これは、インテリセンスで起動していないすべてのXML-コメントが示すように見えるが、おそらく私はそれを正しくやっていないのですか?とにかく、私は列挙リスト内の個々の列挙メンバーは説明のテキストとインテリセンスに表示されるようにそれを作るしようとしています。ここに示すように、例えば、のstring.Split方法では、第3のオーバーロードは、パラメータとしてStringSplitOptions列挙をとる
http://www.freeimagehosting.net/uploads/a138d36615.jpg
私が試した他のものの中で:
public enum ErrorTypeEnum
{
/// <summary>The process could not identify an agency </summary>
BatchAgencyIdentification // Couldn't identify agency
/// <summary>The batch document category was invalid.</summary>
, BatchInvalidBatDocCatCode // Anything other than "C"
/// <summary>The batch has no documents.</summary>
, BatchHasNoDocuments // No document nodes
...
上記の例ではなく、最初の列挙ではなく、他のもののために、作業を行います。
私が間違って何をしているのですか?
解決
あなたは正しい考えを持っているが、あなたのカンマの配置は、それを台無しにされています。個々の列挙型のために現れて取得するには、前ではなく、コンマ後にそれらを配置します。あなたはこれらのケースでは、各行の最後の代わりに、最初にあなたのコンマを置きたいかもしれません。
例えばます。
public enum ErrorTypeEnum
{
/// <summary>The process could not identify an agency </summary>
BatchAgencyIdentification, // Couldn't identify agency
/// <summary>The batch document category was invalid.</summary>
BatchInvalidBatDocCatCode, // Anything other than "C"
/// <summary>The batch has no documents.</summary>
BatchHasNoDocuments // No document nodes
...
所属していません StackOverflow