diff options
author | Kirill Osenkov <github@osenkov.com> | 2018-08-15 21:13:16 +0300 |
---|---|---|
committer | Kirill Osenkov <github@osenkov.com> | 2018-08-15 21:13:16 +0300 |
commit | b407d9744a34fd4647cf3e99068a28d728fd65a2 (patch) | |
tree | e6d6cef915f32dec4f2d16b1868045143deb589f /src/Text/Impl/DifferenceAlgorithm/MaximalSubsequenceAlgorithm.cs | |
parent | cf974b266fb428d846e2e16a25a4eeb8f635c26f (diff) |
Updating to VS-Platform 15.8.519 (29d85337c7d2af248a692fd65ac37b444551e4cf).
Diffstat (limited to 'src/Text/Impl/DifferenceAlgorithm/MaximalSubsequenceAlgorithm.cs')
-rw-r--r-- | src/Text/Impl/DifferenceAlgorithm/MaximalSubsequenceAlgorithm.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Text/Impl/DifferenceAlgorithm/MaximalSubsequenceAlgorithm.cs b/src/Text/Impl/DifferenceAlgorithm/MaximalSubsequenceAlgorithm.cs index a40aa72..2f664d9 100644 --- a/src/Text/Impl/DifferenceAlgorithm/MaximalSubsequenceAlgorithm.cs +++ b/src/Text/Impl/DifferenceAlgorithm/MaximalSubsequenceAlgorithm.cs @@ -20,7 +20,7 @@ namespace Microsoft.VisualStudio.Text.Differencing.Implementation internal sealed class MaximalSubsequenceAlgorithm : IDifferenceService { #region IDifferenceService Members - static readonly Microsoft.TeamFoundation.Diff.Copy.IDiffChange[] Empty = new Microsoft.TeamFoundation.Diff.Copy.IDiffChange[0]; + static readonly Microsoft.TeamFoundation.Diff.Copy.IDiffChange[] Empty = Array.Empty<TeamFoundation.Diff.Copy.IDiffChange>(); public IDifferenceCollection<T> DifferenceSequences<T>(IList<T> left, IList<T> right) { @@ -37,9 +37,9 @@ namespace Microsoft.VisualStudio.Text.Differencing.Implementation internal static DifferenceCollection<T> DifferenceSequences<T>(IList<T> left, IList<T> right, IList<T> originalLeft, IList<T> originalRight, ContinueProcessingPredicate<T> continueProcessingPredicate) { if (left == null) - throw new ArgumentNullException("left"); + throw new ArgumentNullException(nameof(left)); if (right == null) - throw new ArgumentNullException("right"); + throw new ArgumentNullException(nameof(right)); Microsoft.TeamFoundation.Diff.Copy.IDiffChange[] changes; if ((left.Count == 0) || (right.Count == 0)) |