continue;
bool match = true;
- for (int ii = 0; match && ii != args.Length; ++ii)
+ for (int ii = 0; match && ii < args.Length; ++ii)
{
//
// No candidates betterness, only exact matches are supported
if (p._elements.Length != _elements.Length)
return false;
- for (var i = 0; i != _elements.Length; i++)
+ for (var i = 0; i < _elements.Length; i++)
if (!string.Equals (p._elements[i], _elements[i], PathStringComparison))
return false;
{
if (arguments != null) // null is treated as empty, so not invalid
{
- for (int i = 0; i != arguments.Length; ++i)
+ for (int i = 0; i < arguments.Length; ++i)
{
ValidateBindArgument(arguments[i], $"{paramName}[{i}]");
}
public object CreateInstance(IServiceProvider provider)
{
- for (int index = 0; index != _parameters.Length; index++)
+ for (int index = 0; index < _parameters.Length; index++)
{
if (_parameterValues[index] == null)
{
{
comparer = Comparer; // obtain default if this is null.
Array.Sort<TKey, TValue>(keys, values, comparer);
- for (int i = 1; i != keys.Length; ++i)
+ for (int i = 1; i < keys.Length; ++i)
{
if (comparer.Compare(keys[i - 1], keys[i]) == 0)
{
int firstChannelIndex = _channelIndex;
int currChannelIndex;
- while ((currChannelIndex = _channelIndex) != _channels.Length)
+ while ((currChannelIndex = _channelIndex) < _channels.Length)
{
AsynchronousChannel<T> current = _channels[currChannelIndex];
}
// If the index has reached the end, we bail.
- while (_channelIndex != _channels.Length)
+ while (_channelIndex < _channels.Length)
{
SynchronousChannel<T> current = _channels[_channelIndex];
Debug.Assert(current != null);
int? maxAge = null;
bool persist = false;
- while (idx != value.Length)
+ while (idx < value.Length)
{
// Skip OWS before semicolon.
- while (idx != value.Length && IsOptionalWhiteSpace(value[idx])) ++idx;
+ while (idx < value.Length && IsOptionalWhiteSpace(value[idx])) ++idx;
if (idx == value.Length)
{
++idx;
// Skip OWS after semicolon / before value.
- while (idx != value.Length && IsOptionalWhiteSpace(value[idx])) ++idx;
+ while (idx < value.Length && IsOptionalWhiteSpace(value[idx])) ++idx;
// Get the parameter key length.
int tokenLength = HttpRuleParser.GetTokenLength(value, idx);
case Utf8Constants.Plus:
srcIndex++;
- if (srcIndex == source.Length)
+ if (srcIndex >= source.Length)
{
bytesConsumed = 0;
return false;
int maxDigitCount = digits.Length - 1;
// Throw away any leading zeroes
- while (srcIndex != source.Length)
+ while (srcIndex < source.Length)
{
c = source[srcIndex];
if (c != '0')
int startIndexNonLeadingDigitsBeforeDecimal = srcIndex;
int hasNonZeroTail = 0;
- while (srcIndex != source.Length)
+ while (srcIndex < source.Length)
{
c = source[srcIndex];
int value = (byte)(c - (byte)('0'));
srcIndex++;
int startIndexDigitsAfterDecimal = srcIndex;
- while (srcIndex != source.Length)
+ while (srcIndex < source.Length)
{
c = source[srcIndex];
int value = (byte)(c - (byte)('0'));
// continue eating digits from there
srcIndex += 10;
- while (srcIndex != source.Length)
+ while (srcIndex < source.Length)
{
c = source[srcIndex];
int value = (byte)(c - (byte)('0'));
{
int srcIndex = 0;
byte c = default;
- while (srcIndex != source.Length)
+ while (srcIndex < source.Length)
{
c = source[srcIndex];
if (!(c == ' ' || c == '\t'))
uint fraction = digit;
int digitCount = 1;
- while (srcIndex != source.Length)
+ while (srcIndex < source.Length)
{
digit = source[srcIndex] - 48u; // '0'
if (digit > 9)
byte c = default;
// Unlike many other data types, TimeSpan allow leading whitespace.
- while (srcIndex != source.Length)
+ while (srcIndex < source.Length)
{
c = source[srcIndex];
if (!(c == ' ' || c == '\t'))
if (p._elements.Length != _elements.Length)
return false;
- for (var i = 0; i != _elements.Length; i++)
+ for (var i = 0; i < _elements.Length; i++)
if (!string.Equals (p._elements[i], _elements[i], PathStringComparison))
return false;
Normal,
Soft
}
-}
\ No newline at end of file
+}