예제 #1
0
        /// <summary>
        /// Creates a new PagingParams from a list of key-value pairs called tuples.
        /// </summary>
        /// <param name="tuples">a list of values where odd elements are keys and the following
        /// even elements are values</param>
        /// <returns>a newly created PagingParams.</returns>
        public static PagingParams FromTuples(params object[] tuples)
        {
            var map = AnyValueMap.FromTuples(tuples);

            return(FromMap(map));
        }
예제 #2
0
 /// <summary>
 /// Creates a new AnyValueMap from a list of key-value pairs called tuples.
 /// </summary>
 /// <param name="key">list of values where odd elements are keys and the following even elements are values.</param>
 /// <returns>newly created AnyValueArray.</returns>
 /// See <see cref="FromTuples(string)"/>
 public static AnyValueMap FromTuplesArray(params object[] tuples)
 {
     return(AnyValueMap.FromTuples(tuples));
 }