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