3 writes to _objectType
System.Runtime.Serialization.Formatters (3)
System\Runtime\Serialization\Formatters\Binary\BinaryObjectInfo.cs (3)
53_objectType = null; 85_objectType = obj.GetType(); 146_objectType = objectType;
30 references to _objectType
System.Runtime.Serialization.Formatters (30)
System\Runtime\Serialization\Formatters\Binary\BinaryObjectInfo.cs (21)
87if (_objectType.IsArray) 97if (surrogateSelector != null && (_serializationSurrogate = surrogateSelector.GetSurrogate(_objectType, context, out _)) != null) 99_si = new SerializationInfo(_objectType, converter); 100if (!_objectType.IsPrimitive) 108if (!_objectType.IsSerializable) 110throw new SerializationException(SR.Format(SR.Serialization_NonSerType, _objectType.FullName, _objectType.Assembly.FullName)); 112_si = new SerializationInfo(_objectType, converter); 115CheckTypeForwardedFrom(_cache, _objectType, _binderAssemblyString); 120CheckTypeForwardedFrom(_cache, _objectType, _binderAssemblyString); 241Debug.Assert(_serObjectInfoInit != null && _objectType != null); 242if (!_serObjectInfoInit._seenBeforeTable.TryGetValue(_objectType, out _cache!)) 244_cache = new SerObjectInfoCache(_objectType); 245_serObjectInfoInit._seenBeforeTable.Add(_objectType, _cache); 251Debug.Assert(_serObjectInfoInit != null && _objectType != null); 252if (!_serObjectInfoInit._seenBeforeTable.TryGetValue(_objectType, out _cache!)) 254_cache = new SerObjectInfoCache(_objectType); 256_cache._memberInfos = FormatterServices.GetSerializableMembers(_objectType, _context); 267_serObjectInfoInit._seenBeforeTable.Add(_objectType, _cache); 284BinaryFormatterEventSource.Log.SerializingObject(_objectType!); 285binder?.BindToName(_objectType!, out _binderAssemblyString, out _binderTypeName);
System\Runtime\Serialization\Formatters\Binary\BinaryObjectWriter.cs (9)
116Type? objType = objectInfo._objectType; 214else if (!ReferenceEquals(objectInfo._objectType, Converter.s_typeofString)) 242else if (!ReferenceEquals(objectInfo._objectType, Converter.s_typeofString)) 417Type arrayType = objectInfo._objectType!; 929TypeToNameInfo(objectInfo._objectType, objectInfo, ToCode(objectInfo._objectType), null); 932TypeToNameInfo(objectInfo._objectType, objectInfo, ToCode(objectInfo._objectType), nameInfo); 1000_serWriter.WriteAssembly(objectInfo._objectType, serializedAssemblyString, (int)assemId, isNew);