Beispiel #1
0
        public JsonConverter this[int index]
        {
            get
            {
                return(_list[index]);
            }
            set
            {
                if (value == null)
                {
                    throw new ArgumentNullException(nameof(value));
                }

                _options.VerifyMutable();
                _list[index] = value;
            }
        }
Beispiel #2
0
        public TItem this[int index]
        {
            get
            {
                return(_list[index]);
            }
            set
            {
                if (value == null)
                {
                    throw new ArgumentNullException(nameof(value));
                }

                _options.VerifyMutable();
                _list[index] = value;
                OnElementAdded?.Invoke(value);
            }
        }