History

GSF.Core: Fixed spelling of comparison in several places.

J. Ritchie Carroll committed 8 years ago

Commit 95bca8d1 parent ad47e942 files · +44 −44Browse files

Showing the changes to Source/Libraries/GSF.Core.Shared/ArrayExtensions.cs (1 of 2 files). Show all

Unified · Split

Source/Libraries/GSF.Core.Shared/ArrayExtensions.cs+8−8
@@ -531,18 +531,18 @@ namespace GSF · 530 unmodified lines
531 if (length1 != length2)531 if (length1 != length2)
532 return length1.CompareTo(length2);532 return length1.CompareTo(length2);
533 533
534 int comparision = 0;534 int comparison = 0;
535 535
536 // Compares elements of arrays that are of equal size.536 // Compares elements of arrays that are of equal size.
537 for (int x = 0; x < length1; x++)537 for (int x = 0; x < length1; x++)
538 {538 {
539 comparision = source[x].CompareTo(other[x]);539 comparison = source[x].CompareTo(other[x]);
540 540
541 if (comparision != 0)541 if (comparison != 0)
542 break;542 break;
543 }543 }
544 544
545 return comparision;545 return comparison;
546 }546 }
547 547
548 /// <summary>548 /// <summary>
@@ -630,18 +630,18 @@ namespace GSF · 81 unmodified lines
630 // if ((int.MaxValue - otherOffset - count) < 0)630 // if ((int.MaxValue - otherOffset - count) < 0)
631 // throw new ArgumentOutOfRangeException("sourceOffset + count", "exceeds maximum array size");631 // throw new ArgumentOutOfRangeException("sourceOffset + count", "exceeds maximum array size");
632 632
633 int comparision = 0;633 int comparison = 0;
634 634
635 // Compares elements of arrays that are of equal size.635 // Compares elements of arrays that are of equal size.
636 for (int x = 0; x < count; x++)636 for (int x = 0; x < count; x++)
637 {637 {
638 comparision = source[sourceOffset + x].CompareTo(other[otherOffset + x]);638 comparison = source[sourceOffset + x].CompareTo(other[otherOffset + x]);
639 639
640 if (comparision != 0)640 if (comparison != 0)
641 break;641 break;
642 }642 }
643 643
644 return comparision;644 return comparison;
645 }645 }
646 646
647 // Handling byte arrays as a special case for combining multiple buffers since this can647 // Handling byte arrays as a special case for combining multiple buffers since this can

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t