简体   繁体   中英

issue with c# xml documentation

I have the following comment.

    /// <summary>
    /// MSDN Time Format compatible with <see cref="DateTime.ParseExact(string, string, IFormatProvider)"/> 
    /// </summary>
    /// <returns>MSDN Time Format compatible with <see cref="DateTime.ParseExact(string, string, IFormatProvider)"/></returns>

but I'm not sure why I receive the following warning

Warning 7 XML comment on 'MSLab.DateTime.SystemTimeProvider.GetTimeFormat()' has cref attribute 'DateTime.ParseExact(string, string, IFormatProvider)' that could not be resolved F:\\My Documents\\Visual Studio 2010\\Projects\\MSLab\\trunk\\MSLab\\MSLab\\DateTime\\SystemTimeProvider.cs 110 57 MSLab

Based on the warning message, it looks like your SystemTimeProvider class is inside a namespace named DateTime , which has the same name as the .NET DateTime type. To resolve this conflict, change your cref to "System.DateTime.ParseExact(string, string, IFormatProvider)" :

/// <summary>
/// MSDN Time Format compatible with <see cref="System.DateTime.ParseExact(string, string, IFormatProvider)"/>
/// </summary>
/// <returns>MSDN Time Format compatible with <see cref="System.DateTime.ParseExact(string, string, IFormatProvider)"/></returns>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM