How to refer to enum constants in c# xml docs
Posted
by Bruno Martinez
on Stack Overflow
See other posts from Stack Overflow
or by Bruno Martinez
Published on 2010-04-30T14:11:33Z
Indexed on
2010/04/30
14:17 UTC
Read the original article
Hit count: 200
I want to document the default value of an enum typed field:
/// <summary>
/// The default value is <see cref="Orientation.Horizontal" />.
/// </summary>
public Orientation BoxOrientation;
The compiler warns that it couldn't resolve the reference. Prefixing F: or M: silences the compiler, but E: also does, so I'm unsure what prefix is correct.
© Stack Overflow or respective owner