Better exception for SearchableListFilterControl's generic type argument not being an enum

This commit is contained in:
DrabWeb 2017-05-27 18:49:55 -03:00
parent 239472c451
commit 816caf86ea
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ public abstract class SearchableListFilterControl<T,U> : Container
protected SearchableListFilterControl()
{
if (!typeof(T).IsEnum)
throw new InvalidOperationException("BrowseFilterControl only supports enums as the generic type argument");
throw new InvalidOperationException("SearchableListFilterControl's sort tabs only support enums as the generic type argument");
RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y;