コード例 #1
0
 public NodeKeyValueEnumerator(ListDictionaryInternal list, bool isKeys)
 {
     this.list   = list;
     this.isKeys = isKeys;
     version     = list.version;
     start       = true;
     current     = null;
 }
コード例 #2
0
        // This method is internal so that callers can't override which function they call.
        internal IDictionary GetDataInternal()
        {
            if (_data == null)
            {
                if (IsImmutableAgileException(this))
                {
                    _data = new EmptyReadOnlyDictionaryInternal();
                }
                else
                {
                    _data = new ListDictionaryInternal();
                }
            }

            return(_data);
        }
コード例 #3
0
        public SerializationInfo(Type type, IFormatterConverter converter)
        {
            if (type == null)
            {
                throw new ArgumentNullException(nameof(type));
            }
            if (converter == null)
            {
                throw new ArgumentNullException(nameof(converter));
            }

            _rootType             = type;
            _rootTypeName         = type.FullName;
            _rootTypeAssemblyName = type.Module.Assembly.FullName;

            _names       = new string[DefaultSize];
            _values      = new object[DefaultSize];
            _types       = new Type[DefaultSize];
            _nameToIndex = new ListDictionaryInternal();
            _converter   = converter;
        }
コード例 #4
0
 public NodeKeyValueCollection(ListDictionaryInternal list, bool isKeys)
 {
     this.list   = list;
     this.isKeys = isKeys;
 }
コード例 #5
0
 public NodeKeyValueEnumerator(ListDictionaryInternal list, bool isKeys) {
     this.list = list;
     this.isKeys = isKeys;
     this.version = list.version;
     this.start = true;
     this.current = null;
 }
コード例 #6
0
 public NodeKeyValueCollection(ListDictionaryInternal list, bool isKeys) {
     this.list = list;
     this.isKeys = isKeys;
 }
コード例 #7
0
 public NodeEnumerator(ListDictionaryInternal list) {
     this.list = list;
     version = list.version;
     start = true;
     current = null;
 }