From 1a4a35ccf1497bf35ae83ad25b4a0caa2bab2604 Mon Sep 17 00:00:00 2001 From: James Ko Date: Sun, 22 Jan 2017 20:26:25 -0500 Subject: [PATCH] Fix another typo, use named parameters --- src/System.Linq/src/System/Linq/AppendPrepend.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/System.Linq/src/System/Linq/AppendPrepend.cs b/src/System.Linq/src/System/Linq/AppendPrepend.cs index 92b76be5d2b0..2f7cc1106940 100644 --- a/src/System.Linq/src/System/Linq/AppendPrepend.cs +++ b/src/System.Linq/src/System/Linq/AppendPrepend.cs @@ -154,11 +154,11 @@ public override AppendPrependIterator Append(TSource item) { if (_appending) { - return new AppendPrependN(_source, null, new SingleLinkedNode(_item).Add(item), 2, 0); + return new AppendPrependN(_source, null, new SingleLinkedNode(_item).Add(item), prependCount: 0, appendCount: 2); } else { - return new AppendPrependN(_source, new SingleLinkedNode(_item), new SingleLinkedNode(item), 1, 1); + return new AppendPrependN(_source, new SingleLinkedNode(_item), new SingleLinkedNode(item), prependCount: 1, appendCount: 1); } } @@ -166,11 +166,11 @@ public override AppendPrependIterator Prepend(TSource item) { if (_appending) { - return new AppendPrependN(_source, new SingleLinkedNode(item), new SingleLinkedNode(_item), 1, 1); + return new AppendPrependN(_source, new SingleLinkedNode(item), new SingleLinkedNode(_item), prependCount: 1, appendCount: 1); } else { - return new AppendPrependN(_source, new SingleLinkedNode(_item).Add(item), null, 2, 0); + return new AppendPrependN(_source, new SingleLinkedNode(_item).Add(item), null, prependCount: 2, appendCount: 0); } }