Skip to content

Commit

Permalink
Remove exception info from XML docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfsck committed Feb 1, 2019
1 parent d1190ef commit 5135356
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/DotNet/Writer/MethodBodyChunks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,11 @@ internal MethodBody Add(MethodBody methodBody, RVA origRva, uint origSize) {
/// <summary>Removes the specified method body from this chunk</summary>
/// <param name="methodBody">The method body</param>
/// <returns><see langword="true" /> if the method body is removed</returns>
/// <exception cref="ArgumentNullException"><paramref name="methodBody"/> is <see langword="null"/></exception>
/// <exception cref="InvalidOperationException">
/// <see cref="SetOffset(FileOffset, RVA)"/> as already been called.
/// <br/>- or -<br/>
/// Reusing of native method bodies is enabled.
/// </exception>
public bool Remove(MethodBody methodBody) {
if (methodBody == null) throw new ArgumentNullException(nameof(methodBody));
if (setOffsetCalled) throw new InvalidOperationException("SetOffset() has already been called");
if (methodBody == null)
throw new ArgumentNullException(nameof(methodBody));
if (setOffsetCalled)
throw new InvalidOperationException("SetOffset() has already been called");
if (CanReuseOldBodyLocation)
throw new InvalidOperationException("Reusing old body locations is enabled. Can't remove bodies.");

Expand Down

0 comments on commit 5135356

Please sign in to comment.