In MethodB XML doc, I want to write something like
/// <remarks>Before calling this method, call <see cref="MethodA"> passing zero as <paramef name="MethodA.MyParam"/> value.
void MethodA(int MyParam)
/// <remarks>Before calling this method, call <see cref="MethodA"> passing zero as <i>MyParam<i/> value.
What you can, however is to declare an
IsReady-like public property and set it to true when
MethodA is called properly.
MethodB should check that property and throw an
InvalidOperationException if its value is false. Then add this XML coment to
/// <exception cref="InvalidOperationException"> /// <see cref="IsReady" /> is <c>false<c>. /// </exception>
This way the state of your instance is publicly available, so a caller does not need to know whether
MethodA is called with the right arguments beforehand, it can just check whether the
Passing what argument would make the instance "ready" should be in the
MethodA's own documentation, not in the
MethodB's, in my opinion.