/// <summary>Determines whether a string is valid <see cref="T:NMasters.Silverlight.Net.Http.Headers.RangeHeaderValue" /> information.</summary>
 /// <returns>Returns <see cref="T:System.Boolean" />.true if <paramref name="input" /> is valid <see cref="T:NMasters.Silverlight.Net.Http.Headers.AuthenticationHeaderValue" /> information; otherwise, false.</returns>
 /// <param name="input">he string to validate.</param>
 /// <param name="parsedValue">The <see cref="T:NMasters.Silverlight.Net.Http.Headers.RangeHeaderValue" /> version of the string.</param>
 public static bool TryParse(string input, out RangeHeaderValue parsedValue)
 {
     object obj2;
     int index = 0;
     parsedValue = null;
     if (GenericHeaderParser.RangeParser.TryParseValue(input, null, ref index, out obj2))
     {
         parsedValue = (RangeHeaderValue) obj2;
         return true;
     }
     return false;
 }
 internal static int GetRangeLength(string input, int startIndex, out object parsedValue)
 {
     parsedValue = null;
     if (string.IsNullOrEmpty(input) || (startIndex >= input.Length))
     {
         return 0;
     }
     int tokenLength = HttpRuleParser.GetTokenLength(input, startIndex);
     if (tokenLength == 0)
     {
         return 0;
     }
     RangeHeaderValue value2 = new RangeHeaderValue {
         unit = input.Substring(startIndex, tokenLength)
     };
     int num2 = startIndex + tokenLength;
     num2 += HttpRuleParser.GetWhitespaceLength(input, num2);
     if ((num2 == input.Length) || (input[num2] != '='))
     {
         return 0;
     }
     num2++;
     num2 += HttpRuleParser.GetWhitespaceLength(input, num2);
     int num3 = RangeItemHeaderValue.GetRangeItemListLength(input, num2, value2.Ranges);
     if (num3 == 0)
     {
         return 0;
     }
     num2 += num3;
     parsedValue = value2;
     return (num2 - startIndex);
 }