While writing the XML documentation for my program I have run into a problem documenting this method:
internal void MethodB(int i, DateTime? date = null);
The problem I am having is specfic to the date
parameter. As you can see, it is optional as well as nullable. Here is how I tried to document this method:
/// <summary>
/// This method uses <see cref="MethodB(Int32, System.DateTime)"/> internally
/// todo some stuff.
/// </summary>
Specifically, I am getting a compiler warning that indicates that the value of cref could not be resolved.
How can I fix my XML documentation comment so that it will compile without this warning?