77 references to TypeOfObject
System.Runtime.Serialization (77)
System\Runtime\Serialization\ClassDataContract.cs (1)
714
if (baseType != null && baseType != Globals.
TypeOfObject
&& baseType != Globals.TypeOfValueType && baseType != Globals.TypeOfUri)
System\Runtime\Serialization\CodeExporter.cs (4)
838
type.BaseTypes.Add(Globals.
TypeOfObject
);
1148
type.BaseTypes.Add(Globals.
TypeOfObject
);
1262
type.BaseTypes.Add(Globals.
TypeOfObject
);
1962
left = new CodeMethodInvokeExpression(new CodeTypeReferenceExpression(Globals.
TypeOfObject
),
System\Runtime\Serialization\CodeGenerator.cs (3)
114
objectEquals = Globals.
TypeOfObject
.GetMethod("Equals", BindingFlags.Public | BindingFlags.Static);
438
ConvertValue(type, Globals.
TypeOfObject
);
440
ConvertValue(type, Globals.
TypeOfObject
);
System\Runtime\Serialization\CollectionDataContract.cs (7)
909
itemType = Globals.
TypeOfObject
;
921
bool isBaseTypeCollection = (baseType != null && baseType != Globals.
TypeOfObject
980
itemType = Globals.
TypeOfObject
;
1052
itemType = knownInterfaceType.IsGenericType ? knownInterfaceType.GetGenericArguments()[0] : Globals.
TypeOfObject
;
1097
addMethodTypeArray = new Type[] { Globals.
TypeOfObject
, Globals.
TypeOfObject
};
1106
itemType = Globals.
TypeOfObject
;
System\Runtime\Serialization\Configuration\DeclaredTypeValidator.cs (2)
22
if (type.StartsWith(Globals.
TypeOfObject
.FullName, StringComparison.Ordinal))
25
if (t != null && Globals.
TypeOfObject
.Equals(t))
System\Runtime\Serialization\DataContract.cs (1)
683
type = Globals.
TypeOfObject
;
System\Runtime\Serialization\DataContractSerializer.cs (1)
515
objType = Globals.
TypeOfObject
;
System\Runtime\Serialization\ExtensionDataReader.cs (2)
636
if (type == Globals.
TypeOfObject
)
639
if (type == Globals.
TypeOfObject
)
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (11)
291
ilg.ConvertValue(Globals.
TypeOfObject
, type);
338
ilg.ConvertValue(Globals.
TypeOfObject
, ilg.CurrentMethod.ReturnType);
404
ilg.ConvertValue(objectLocal.LocalType, Globals.
TypeOfObject
);
530
if ((primitiveContract != null && primitiveContract.UnderlyingType != Globals.
TypeOfObject
) || nullables != 0 || type.IsValueType)
569
if (primitiveContract != null && primitiveContract.UnderlyingType != Globals.
TypeOfObject
)
587
ilg.ConvertValue(Globals.
TypeOfObject
, type);
623
ilg.ConvertValue(Globals.
TypeOfObject
, type);
784
if (keyType == Globals.TypeOfString || keyType == Globals.
TypeOfObject
)
835
ilg.ConvertValue(Globals.
TypeOfObject
, keyType);
867
ilg.ConvertValue(Globals.
TypeOfObject
, type);
1004
ilg.ConvertValue(Globals.
TypeOfObject
, itemType);
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (10)
415
keyValueTypes = new Type[] { Globals.
TypeOfObject
, Globals.
TypeOfObject
};
527
ilg.ConvertValue(currentValue.LocalType, Globals.
TypeOfObject
);
551
if (primitiveContract == null || primitiveContract.UnderlyingType == Globals.
TypeOfObject
)
693
if (primitiveContract != null && primitiveContract.UnderlyingType != Globals.
TypeOfObject
)
706
if (memberType == Globals.
TypeOfObject
|| //boxed Nullable<T>
711
ilg.ConvertValue(memberValue.LocalType, Globals.
TypeOfObject
);
712
memberValue = ilg.DeclareLocal(Globals.
TypeOfObject
, "unwrappedMemberValue");
722
if (memberType == Globals.
TypeOfObject
) //boxed Nullable<T>
734
ilg.ConvertValue(memberValue.LocalType, Globals.
TypeOfObject
);
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
246
else if ((dataType == Globals.
TypeOfObject
) && (dataNode.Value != null))
System\Runtime\Serialization\NetDataContractSerializer.cs (1)
441
return GetDataContract(((obj == null) ? Globals.
TypeOfObject
: obj.GetType()), ref surrogateDataContracts);
System\Runtime\Serialization\SchemaExporter.cs (1)
352
DataContractSerializer serializer = new DataContractSerializer(Globals.
TypeOfObject
,
System\Runtime\Serialization\SchemaImporter.cs (2)
209
return dataContract is PrimitiveDataContract && ((PrimitiveDataContract)dataContract).UnderlyingType == Globals.
TypeOfObject
;
1351
DataContractSerializer serializer = new DataContractSerializer(Globals.
TypeOfObject
, name, ns, knownTypes,
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (8)
284
ilg.ConvertValue(Globals.
TypeOfObject
, type);
331
ilg.ConvertValue(Globals.
TypeOfObject
, ilg.CurrentMethod.ReturnType);
486
if ((primitiveContract != null && primitiveContract.UnderlyingType != Globals.
TypeOfObject
) || nullables != 0 || type.IsValueType)
525
if (primitiveContract != null && primitiveContract.UnderlyingType != Globals.
TypeOfObject
)
543
ilg.ConvertValue(Globals.
TypeOfObject
, type);
578
ilg.ConvertValue(Globals.
TypeOfObject
, type);
746
ilg.ConvertValue(Globals.
TypeOfObject
, type);
855
ilg.ConvertValue(Globals.
TypeOfObject
, itemType);
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (10)
451
keyValueTypes = new Type[] { Globals.
TypeOfObject
, Globals.
TypeOfObject
};
526
ilg.ConvertValue(currentValue.LocalType, Globals.
TypeOfObject
);
543
if (primitiveContract == null || primitiveContract.UnderlyingType == Globals.
TypeOfObject
)
670
if (primitiveContract != null && primitiveContract.UnderlyingType != Globals.
TypeOfObject
&& !writeXsiType)
683
if (memberType == Globals.
TypeOfObject
|| //boxed Nullable<T>
688
ilg.ConvertValue(memberValue.LocalType, Globals.
TypeOfObject
);
689
memberValue = ilg.DeclareLocal(Globals.
TypeOfObject
, "unwrappedMemberValue");
699
if (memberType == Globals.
TypeOfObject
) //boxed Nullable<T>
711
ilg.ConvertValue(memberValue.LocalType, Globals.
TypeOfObject
);
System\Runtime\Serialization\XmlObjectSerializer.cs (1)
379
DataContract objectContract = PrimitiveDataContract.GetPrimitiveDataContract(Globals.
TypeOfObject
);
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (2)
594
value = InternalDeserialize(xmlReader, Globals.
TypeOfObject
, name, String.Empty);
745
IDataNode objNode = ReadUnknownPrimitiveData(xmlReader, Globals.
TypeOfObject
, dataContractName, dataContractNamespace);
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (4)
121
Type declaredType = Globals.
TypeOfObject
;
547
InternalSerializeReference(xmlWriter, obj, false /*isDeclaredType*/, false /*writeXsiType*/, -1, Globals.
TypeOfObject
.TypeHandle);
613
if (dataType == Globals.
TypeOfObject
)
634
Type declaredType = (dataNode.DataContractName == null) ? o.GetType() : Globals.
TypeOfObject
;
System\Runtime\Serialization\XmlObjectSerializerWriteContextComplex.cs (1)
351
declaredType = Globals.
TypeOfObject
;
System\Runtime\Serialization\XmlReaderDelegator.cs (2)
274
else if (valueType == Globals.
TypeOfObject
)
329
else if (valueType == Globals.
TypeOfObject
)
System\Runtime\Serialization\XmlWriterDelegator.cs (2)
345
else if (valueType == Globals.
TypeOfObject
)
422
else if (valueType == Globals.
TypeOfObject
)