Added equivalent modification from RegexBot

This commit is contained in:
Noikoio 2018-11-04 19:37:52 -08:00
parent 8bee71a863
commit 367427938c

View file

@ -66,7 +66,6 @@ namespace Kerobot.Common
_innerList = list.AsReadOnly(); _innerList = list.AsReadOnly();
} }
#region Entity matching
/// <summary> /// <summary>
/// Checks if the parameters of the given <see cref="SocketMessage"/> matches with /// Checks if the parameters of the given <see cref="SocketMessage"/> matches with
/// any entity specified in this list. /// any entity specified in this list.
@ -130,10 +129,13 @@ namespace Kerobot.Common
} }
} }
} }
return false; return false;
} }
#endregion
/// <summary>
/// Determines if this list contains no entries.
/// </summary>
public bool IsEmpty() => _innerList.Count == 0;
public override string ToString() => $"Entity list contains {_innerList.Count} item(s)."; public override string ToString() => $"Entity list contains {_innerList.Count} item(s).";