Format code
This commit is contained in:
1 parent
1b6adc58f6
commit
6cc25f892d
1 file changed
+1
-2
@@ -65,8 +65,7 @@ namespace HandyControl.Tools
|
||||
|
||||
public Deque(IEnumerable<T> backCollection, IEnumerable<T> frontCollection)
|
||||
{
|
||||
if (backCollection == null && frontCollection == null)
|
||||
throw new ArgumentException("Collections cannot both be null");
|
||||
if (backCollection == null && frontCollection == null) throw new ArgumentException("Collections cannot both be null");
|
||||
|
||||
_front = frontCollection != null ? new List<T>(frontCollection) : new List<T>();
|
||||
_back = backCollection != null ? new List<T>(backCollection) : new List<T>();
|
||||
|
||||
Reference in new issue
Block a user