Missing XML comment for publicly visible type or member

前端 未结 16 2336
甜味超标
甜味超标 2020-11-30 17:16

I am getting this warning: \"Missing XML comment for publicly visible type or member\".

How to solve this?

16条回答
  •  佛祖请我去吃肉
    2020-11-30 17:44

    You need to add /// Comment for the member for which warning is displayed.

    see below code

    public EventLogger()
    {
        LogFile = string.Format("{0}{1}", LogFilePath, FileName);
    }
    

    It displays warning Missing XML comment for publicly visible type or member '.EventLogger()'

    I added comment for the member and warning gone.

    ///
    /// To write a log 
    ///
    public EventLogger()
    {
        LogFile = string.Format("{0}{1}", LogFilePath, FileName);
    }
    

提交回复
热议问题