public NodeKeyValueEnumerator(ListDictionaryInternal list, bool isKeys) { this.list = list; this.isKeys = isKeys; version = list.version; start = true; current = null; }
// 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); }
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; }
public NodeKeyValueCollection(ListDictionaryInternal list, bool isKeys) { this.list = list; this.isKeys = isKeys; }
public NodeKeyValueEnumerator(ListDictionaryInternal list, bool isKeys) { this.list = list; this.isKeys = isKeys; this.version = list.version; this.start = true; this.current = null; }
public NodeEnumerator(ListDictionaryInternal list) { this.list = list; version = list.version; start = true; current = null; }