2 writes to _cache
System.Runtime.Serialization.Formatters (2)
System\Runtime\Serialization\Formatters\Binary\BinaryObjectInfo.cs (2)
484_cache = new SerObjectInfoCache(_objectType!); 489_cache = new SerObjectInfoCache(_objectType!);
45 references to _cache
System.Runtime.Serialization.Formatters (45)
System\Runtime\Serialization\Formatters\Binary\BinaryObjectInfo.cs (45)
490_cache._memberInfos = FormatterServices.GetSerializableMembers(_objectType!, _context); 491_count = _cache._memberInfos.Length; 492_cache._memberNames = new string[_count]; 493_cache._memberTypes = new Type[_count]; 498_cache._memberNames[i] = _cache._memberInfos[i].Name; 499_cache._memberTypes[i] = GetMemberType(_cache._memberInfos[i]); 508if (_cache == null) 518if (_cache._memberInfos == null) 524return position != -1 ? _cache._memberInfos[position] : null; 536Type type = _isTyped ? _cache!._memberTypes![position] : _memberTypesList![position]; 577if (memberData == null && _cache != null) 579Debug.Assert(_cache._memberNames != null); 580memberData = new object[_cache._memberNames.Length]; 607Debug.Assert(_cache != null && _cache._memberInfos != null); 608_objectManager.RecordFixup(objectId, _cache._memberInfos[position], idRef); 618Debug.Assert(_cache != null && _cache._memberInfos != null); 619FormatterServices.PopulateObjectMembers(obj, _cache._memberInfos, memberData); 626if (_cache == null) 631Debug.Assert(_cache._memberNames != null); 632if (_cache._memberNames.Length > 0 && _cache._memberNames[_lastPosition].Equals(name)) 636else if ((++_lastPosition < _cache._memberNames.Length) && (_cache._memberNames[_lastPosition].Equals(name))) 643for (int i = 0; i < _cache._memberNames.Length; i++) 645if (_cache._memberNames[i].Equals(name)) 665if (_cache == null) 670Debug.Assert(_cache._memberInfos != null); 671if (_cache._memberTypes == null) 673_cache._memberTypes = new Type[_count]; 676_cache._memberTypes[i] = GetMemberType(_cache._memberInfos[i]); 681if (inMemberNames.Length < _cache._memberInfos.Length) 686Type[] outMemberTypes = new Type[_cache._memberInfos.Length]; 688for (int i = 0; i < _cache._memberInfos.Length; i++) 690if (!memberMissing && inMemberNames[i].Equals(_cache._memberInfos[i].Name)) 692outMemberTypes[i] = _cache._memberTypes[i]; 700if (_cache._memberInfos[i].Name.Equals(inMemberNames[j])) 702outMemberTypes[i] = _cache._memberTypes[i]; 712_cache._memberInfos[i].GetCustomAttribute<OptionalFieldAttribute>(inherit: false) == null) 714Debug.Assert(_cache._memberNames != null); 715throw new SerializationException(SR.Format(SR.Serialization_MissingMember, _cache._memberNames[i], objectType, typeof(OptionalFieldAttribute).FullName));