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