mirror of https://github.com/ppy/osu
Fix copy-paste oversights in xmldoc & exception messages
This commit is contained in:
parent
d09da02673
commit
876f53bf3b
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue