Exemplo n.º 1
0
 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);
        }
Exemplo n.º 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;
        }
Exemplo n.º 4
0
 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 NodeKeyValueCollection(ListDictionaryInternal list, bool isKeys) {
     this.list = list;
     this.isKeys = isKeys;
 }
 public NodeEnumerator(ListDictionaryInternal list) {
     this.list = list;
     version = list.version;
     start = true;
     current = null;
 }