mirror of
https://gitee.com/handyorg/HandyControl.git
synced 2024-12-02 11:57:37 +08:00
Format code
This commit is contained in:
parent
1b6adc58f6
commit
6cc25f892d
@ -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>();
|
||||
|
Loading…
Reference in New Issue
Block a user