80 references to TypeOfObject
System.Private.DataContractSerialization (80)
System\Runtime\Serialization\ClassDataContract.cs (1)
646
if (baseType != null && baseType != Globals.
TypeOfObject
&& baseType != Globals.TypeOfValueType && baseType != Globals.TypeOfUri)
System\Runtime\Serialization\CodeGenerator.cs (2)
323
ConvertValue(type, Globals.
TypeOfObject
);
325
ConvertValue(type, Globals.
TypeOfObject
);
System\Runtime\Serialization\CollectionDataContract.cs (7)
1010
itemType = Globals.
TypeOfObject
;
1024
bool isBaseTypeCollection = (baseType != null && baseType != Globals.
TypeOfObject
1086
itemType = Globals.
TypeOfObject
;
1164
itemType = knownInterfaceType.IsGenericType ? knownInterfaceType.GetGenericArguments()[0] : Globals.
TypeOfObject
;
1214
addMethodTypeArray = new Type[] { Globals.
TypeOfObject
, Globals.
TypeOfObject
};
1223
itemType = Globals.
TypeOfObject
;
System\Runtime\Serialization\DataContract.cs (1)
581
type = Globals.
TypeOfObject
;
System\Runtime\Serialization\DataContractSerializer.cs (1)
531
objType = obj != null ? obj.GetType() : Globals.
TypeOfObject
;
System\Runtime\Serialization\ExtensionDataReader.cs (2)
633
if (type == Globals.
TypeOfObject
&& dataNode.Value != null)
636
if (type == Globals.
TypeOfObject
)
System\Runtime\Serialization\Globals.cs (2)
305
get => s_typeOfHashtable ??= TypeOfDictionaryGeneric.MakeGenericType(
TypeOfObject
,
TypeOfObject
);
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (11)
227
_ilg.ConvertValue(Globals.
TypeOfObject
, type);
274
_ilg.ConvertValue(Globals.
TypeOfObject
, _ilg.CurrentMethod.ReturnType);
347
_ilg.ConvertValue(_objectLocal.LocalType, Globals.
TypeOfObject
);
479
if ((primitiveContract != null && primitiveContract.UnderlyingType != Globals.
TypeOfObject
) || nullables != 0 || type.IsValueType)
518
if (primitiveContract != null && primitiveContract.UnderlyingType != Globals.
TypeOfObject
)
536
_ilg.ConvertValue(Globals.
TypeOfObject
, type);
576
_ilg.ConvertValue(Globals.
TypeOfObject
, type);
745
if (keyType == Globals.TypeOfString || keyType == Globals.
TypeOfObject
)
796
_ilg.ConvertValue(Globals.
TypeOfObject
, keyType);
830
_ilg.ConvertValue(Globals.
TypeOfObject
, type);
974
_ilg.ConvertValue(Globals.
TypeOfObject
, itemType);
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (10)
374
keyValueTypes = new Type[] { Globals.
TypeOfObject
, Globals.
TypeOfObject
};
485
_ilg.ConvertValue(currentValue.LocalType, Globals.
TypeOfObject
);
511
if (primitiveContract == null || primitiveContract.UnderlyingType == Globals.
TypeOfObject
)
662
if (primitiveContract != null && primitiveContract.UnderlyingType != Globals.
TypeOfObject
)
675
if (memberType == Globals.
TypeOfObject
|| //boxed Nullable<T>
680
_ilg.ConvertValue(memberValue.LocalType, Globals.
TypeOfObject
);
681
memberValue = _ilg.DeclareLocal(Globals.
TypeOfObject
);
691
if (memberType == Globals.
TypeOfObject
) //boxed Nullable<T>
703
_ilg.ConvertValue(memberValue.LocalType, Globals.
TypeOfObject
);
System\Runtime\Serialization\Json\ReflectionJsonFormatReader.cs (1)
165
if (keyType == Globals.TypeOfString || keyType == Globals.
TypeOfObject
)
System\Runtime\Serialization\Json\ReflectionJsonFormatWriter.cs (1)
90
if (primitiveContractForType != null && primitiveContractForType.UnderlyingType != Globals.
TypeOfObject
)
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
310
else if ((dataType == Globals.
TypeOfObject
) && (dataNode.Value != null))
System\Runtime\Serialization\ReflectionClassWriter.cs (3)
88
if (primitiveContract != null && primitiveContract.UnderlyingType != Globals.
TypeOfObject
&& !writeXsiType)
95
(memberType == Globals.
TypeOfObject
122
if (primitiveContract == null || primitiveContract.UnderlyingType == Globals.
TypeOfObject
)
System\Runtime\Serialization\ReflectionReader.cs (3)
263
if ((primitiveContract != null && primitiveContract.UnderlyingType != Globals.
TypeOfObject
) || nullables != 0 || type.IsValueType)
294
if (primitiveContract != null && primitiveContract.UnderlyingType != Globals.
TypeOfObject
)
355
if ((primitiveContract != null && primitiveContract.UnderlyingType != Globals.
TypeOfObject
) || nullables != 0 || type.IsValueType)
System\Runtime\Serialization\ReflectionXmlFormatWriter.cs (1)
61
if (primitiveContractForType != null && primitiveContractForType.UnderlyingType != Globals.
TypeOfObject
)
System\Runtime\Serialization\SchemaExporter.cs (1)
350
DataContractSerializer serializer = new DataContractSerializer(Globals.
TypeOfObject
,
System\Runtime\Serialization\SchemaImporter.cs (2)
207
return dataContract is PrimitiveDataContract && ((PrimitiveDataContract)dataContract).UnderlyingType == Globals.
TypeOfObject
;
1338
DataContractSerializer serializer = new DataContractSerializer(Globals.
TypeOfObject
, name, ns, knownTypes,
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (8)
283
_ilg.ConvertValue(Globals.
TypeOfObject
, type);
340
_ilg.ConvertValue(Globals.
TypeOfObject
, _ilg.CurrentMethod.ReturnType);
516
if ((primitiveContract != null && primitiveContract.UnderlyingType != Globals.
TypeOfObject
) || nullables != 0 || type.IsValueType)
555
if (primitiveContract != null && primitiveContract.UnderlyingType != Globals.
TypeOfObject
)
573
_ilg.ConvertValue(Globals.
TypeOfObject
, type);
609
_ilg.ConvertValue(Globals.
TypeOfObject
, type);
786
_ilg.ConvertValue(Globals.
TypeOfObject
, type);
901
_ilg.ConvertValue(Globals.
TypeOfObject
, itemType);
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (10)
453
keyValueTypes = new Type[] { Globals.
TypeOfObject
, Globals.
TypeOfObject
};
525
_ilg.ConvertValue(currentValue.LocalType, Globals.
TypeOfObject
);
544
if (primitiveContract == null || primitiveContract.UnderlyingType == Globals.
TypeOfObject
)
675
if (primitiveContract != null && primitiveContract.UnderlyingType != Globals.
TypeOfObject
&& !writeXsiType)
688
if (memberType == Globals.
TypeOfObject
||//boxed Nullable<T>
693
_ilg.ConvertValue(memberValue.LocalType, Globals.
TypeOfObject
);
694
memberValue = _ilg.DeclareLocal(Globals.
TypeOfObject
);
704
if (memberType == Globals.
TypeOfObject
) //boxed Nullable<T>
716
_ilg.ConvertValue(memberValue.LocalType, Globals.
TypeOfObject
);
System\Runtime\Serialization\XmlObjectSerializer.cs (1)
426
DataContract objectContract = PrimitiveDataContract.GetPrimitiveDataContract(Globals.
TypeOfObject
)!;
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (2)
579
value = InternalDeserialize(xmlReader, Globals.
TypeOfObject
, name, string.Empty);
737
IDataNode objNode = ReadUnknownPrimitiveData(xmlReader, Globals.
TypeOfObject
, dataContractName, dataContractNamespace);
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (4)
99
Type declaredType = Globals.
TypeOfObject
;
568
InternalSerializeReference(xmlWriter, obj, false /*isDeclaredType*/, false /*writeXsiType*/, -1, Globals.
TypeOfObject
.TypeHandle);
725
if (dataType == Globals.
TypeOfObject
)
748
Type declaredType = (dataNode.DataContractName == null) ? o.GetType() : Globals.
TypeOfObject
;
System\Runtime\Serialization\XmlObjectSerializerWriteContextComplex.cs (1)
238
declaredType = Globals.
TypeOfObject
;
System\Runtime\Serialization\XmlReaderDelegator.cs (2)
265
else if (valueType == Globals.
TypeOfObject
)
320
else if (valueType == Globals.
TypeOfObject
)
System\Runtime\Serialization\XmlWriterDelegator.cs (2)
338
else if (valueType == Globals.
TypeOfObject
)
415
else if (valueType == Globals.
TypeOfObject
)