How to refer to enum constants in c# xml docs

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

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

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


        
2条回答
  •  萌比男神i
    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)

提交回复
热议问题