How to refer to enum constants in c# xml docs

后端 未结 2 915
死守一世寂寞
死守一世寂寞 2021-02-18 16:57

I want to document the default value of an enum typed field:

/// 
/// The default value is .
/// <         


        
相关标签:
2条回答
  • 2021-02-18 17:37

    The prefixes F, M and E are all valid and probably the reason that the compiler warning disappears.

    You should however use the F that refers to fields. For more information on how Visual Studio generates documentation identifiers see:

    Processing the XML File (C# Programming Guide)

    0 讨论(0)
  • 2021-02-18 17:48

    I don't think you should need the prefix - probably you need to add a "using" to the namespace where the Orientation type is defined.

    0 讨论(0)
提交回复
热议问题