コード例 #1
0
        /// <summary>Get the value at a specified index when the current value is a <see cref="JsonValueKind.Array"/>.</summary>
        /// <exception cref="InvalidOperationException">
        ///   This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Array"/>.
        /// </exception>
        /// <exception cref="IndexOutOfRangeException">
        ///   <paramref name="index"/> is not in the range [0, <see cref="GetArrayLength"/>()).
        /// </exception>
        public                       JwtElement this[int index]
        {
            get
            {
                if (_parent != null)
                {
                    return(_parent.GetArrayIndexElement(_idx, index));
                }

                throw new IndexOutOfRangeException();
            }
        }