/// <summary> /// Attempts to parse the sequence of values as a sequence of <see cref="EntityTagHeaderValue"/>. /// </summary> /// <param name="inputs">The values to parse.</param> /// <param name="parsedValues">The parsed values.</param> /// <returns><see langword="true"/> if all inputs are valid <see cref="EntityTagHeaderValue"/>, otherwise <see langword="false"/>.</returns> public static bool TryParseList(IList <string>?inputs, [NotNullWhen(true)] out IList <EntityTagHeaderValue>?parsedValues) { return(MultipleValueParser.TryParseValues(inputs, out parsedValues)); }
/// <summary> /// Attempts to parse the sequence of values as a sequence of <see cref="StringWithQualityHeaderValue"/>. /// </summary> /// <param name="input">The values to parse.</param> /// <param name="parsedValues">The parsed values.</param> /// <returns><see langword="true"/> if all inputs are valid <see cref="StringWithQualityHeaderValue"/>, otherwise <see langword="false"/>.</returns> public static bool TryParseList(IList <string>?input, [NotNullWhen(true)] out IList <StringWithQualityHeaderValue>?parsedValues) { return(MultipleValueParser.TryParseValues(input, out parsedValues)); }
public static bool TryParseList(IList <string> inputs, out IList <SetCookieHeaderValue> parsedValues) { return(MultipleValueParser.TryParseValues(inputs, out parsedValues)); }