ToValueArray(KeyValuePair<string, string>[], int, int) Method
Validates that the correct number of arguments have been used and returns them as an array. This will collapse keys and values into a single argument value so that "=" doesn't have to be escaped with quotes.
Namespace
Statiq.Common
Containing Type
ShortcodeArgsExtensions

Syntax

public static string[] ToValueArray(this KeyValuePair<string, string>[] args, int minimumCount, int maximumCount)

Parameters

Name Type Description
args KeyValuePair<string, string>[] The original shortcode arguments.
minimumCount int The minimum count of expected arguments.
maximumCount int The maximum count of expected arguments.

Return Value

Type Description
string[] The argument values.