c# - XML comment for method main? -
in c# have written xml comment main
method:
/// <summary> /// comment. /// </summary> public static void main(string[] args) {
but visual studio warns me against it:
xml comment not placed on valid language element main
what recommended way comment on main
method in c#?
certain language elements aren't allowed have xml documentation such namespaces , in case main methods also. documentation says , has links show other xml do's , don'ts.
the hacky answer possibly suggest if wanted comment use double quotes // instead of triples. triples processed documentation class , causing background issues.
Comments
Post a Comment