Fix copy-paste oversights in xmldoc & exception messages

This commit is contained in:
Bartłomiej Dach 2021-05-14 22:15:43 +02:00
parent d09da02673
commit 876f53bf3b
2 changed files with 3 additions and 3 deletions

View File

@ -43,9 +43,9 @@ public interface ISkinnableTarget : IDrawable
void Add(ISkinnableDrawable drawable);
/// <summary>
/// Remove an existing skinnable component to this target.
/// Remove an existing skinnable component from this target.
/// </summary>
/// <param name="component">The component to add.</param>
/// <param name="component">The component to remove.</param>
public void Remove(ISkinnableDrawable component);
}
}

View File

@ -64,7 +64,7 @@ public void Add(ISkinnableDrawable component)
public void Remove(ISkinnableDrawable component)
{
if (content == null)
throw new NotSupportedException("Attempting to add a new component to a target container which is not supported by the current skin.");
throw new NotSupportedException("Attempting to remove a new component from a target container which is not supported by the current skin.");
if (!(component is Drawable drawable))
throw new ArgumentException($"Provided argument must be of type {nameof(Drawable)}.", nameof(drawable));