Reputation: 2531
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
Upvotes: 0
Views: 299
Reputation: 55339
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>
Upvotes: 1