168 references to XmlFormatGeneratorStatics
System.Runtime.Serialization (168)
System\Runtime\Serialization\ClassDataContract.cs (1)
1119extensionDataSetMethod = XmlFormatGeneratorStatics.ExtensionDataSetExplicitMethodInfo;
System\Runtime\Serialization\CodeGenerator.cs (2)
1749ilGen.Emit(OpCodes.Call, XmlFormatGeneratorStatics.TraceInstructionMethod); 1765Call(XmlFormatGeneratorStatics.TraceInstructionMethod);
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (37)
142ilg.Call(contextArg, XmlFormatGeneratorStatics.AddNewObjectMethod, objectLocal); 161ilg.Call(XmlFormatGeneratorStatics.GetDateTimeOffsetMethod); 249ilg.Call(contextArg, XmlFormatGeneratorStatics.DemandMemberAccessPermissionMethod); 257ilg.Call(contextArg, XmlFormatGeneratorStatics.DemandSerializationFormatterPermissionMethod); 305ilg.LoadMember(XmlFormatGeneratorStatics.GetStreamingContextMethod); 319ilg.LoadMember(XmlFormatGeneratorStatics.GetStreamingContextMethod); 337ilg.Call(XmlFormatGeneratorStatics.GetRealObjectMethod); 369ilg.Call(contextArg, XmlFormatGeneratorStatics.IncrementItemCountMethod, memberCount); 381ilg.Call(null, XmlFormatGeneratorStatics.MoveToNextElementMethod, xmlReaderArg); 434ilg.Call(contextArg, XmlFormatGeneratorStatics.StoreCollectionMemberInfoMethod, value); 512ilg.Call(contextArg, XmlFormatGeneratorStatics.ReadSerializationInfoMethod, xmlReaderArg, classContract.UnderlyingType); 514ilg.LoadMember(XmlFormatGeneratorStatics.GetStreamingContextMethod); 533ilg.Call(contextArg, XmlFormatGeneratorStatics.ReadAttributesMethod, xmlReaderArg); 534ilg.Call(contextArg, XmlFormatGeneratorStatics.ReadIfNullOrRefMethod, xmlReaderArg, type, DataContract.IsTypeSerializable(type)); 555ilg.Call(contextArg, XmlFormatGeneratorStatics.GetObjectIdMethod); 574ilg.Call(contextArg, XmlFormatGeneratorStatics.AddNewObjectMethod, value); 586ilg.Call(contextArg, XmlFormatGeneratorStatics.GetExistingObjectMethod, objectId, type, name, string.Empty); 618ilg.Call(XmlFormatGeneratorStatics.InternalDeserializeMethod); 683ilg.Call(contextArg, XmlFormatGeneratorStatics.AddNewObjectMethod, objectLocal); 701ilg.Call(contextArg, XmlFormatGeneratorStatics.GetObjectIdMethod); 723ilg.Call(contextArg, XmlFormatGeneratorStatics.IncrementItemCountMethod, 1); 727MethodInfo ensureArraySizeMethod = XmlFormatGeneratorStatics.EnsureArraySizeMethod.MakeGenericMethod(itemType); 746MethodInfo trimArraySizeMethod = XmlFormatGeneratorStatics.TrimArraySizeMethod.MakeGenericMethod(itemType); 749ilg.Call(contextArg, XmlFormatGeneratorStatics.AddNewObjectWithIdMethod, objectId, objectLocal); 755ilg.Call(contextArg, XmlFormatGeneratorStatics.AddNewObjectWithIdMethod, objectId, objectLocal); 822ilg.Call(contextArg, XmlFormatGeneratorStatics.IncrementItemCountMethod, 1); 866ilg.LoadMember(XmlFormatGeneratorStatics.GetCollectionMemberMethod); 879ilg.Call(null, XmlFormatGeneratorStatics.ThrowNullValueReturnedForGetOnlyCollectionExceptionMethod, type); 884ilg.Call(contextArg, XmlFormatGeneratorStatics.CheckEndOfArrayMethod, xmlReaderArg, size, memberNamesArg, emptyDictionaryStringArg); 895ilg.Call(null, XmlFormatGeneratorStatics.ThrowNullValueReturnedForGetOnlyCollectionExceptionMethod, type); 902ilg.Call(XmlFormatGeneratorStatics.GetArrayLengthMethod); 910ilg.Call(contextArg, XmlFormatGeneratorStatics.IncrementItemCountMethod, 1); 915ilg.Call(null, XmlFormatGeneratorStatics.ThrowArrayExceededSizeExceptionMethod, size, type); 931ilg.Call(contextArg, XmlFormatGeneratorStatics.CheckEndOfArrayMethod, xmlReaderArg, size, memberNamesArg, emptyDictionaryStringArg); 996ilg.Call(contextArg, XmlFormatGeneratorStatics.ResetAttributesMethod); 1055ilg.Call(contextArg, XmlFormatGeneratorStatics.SkipUnknownElementMethod, xmlReaderArg); 1082ilg.Call(null, XmlFormatGeneratorStatics.CreateUnexpectedStateExceptionMethod, expectedState, xmlReaderArg);
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (27)
182ilg.Call(XmlFormatGeneratorStatics.GetDateTimeOffsetAdapterMethod); 196ilg.Call(contextArg, XmlFormatGeneratorStatics.DemandMemberAccessPermissionMethod); 204ilg.Call(contextArg, XmlFormatGeneratorStatics.DemandSerializationFormatterPermissionMethod); 210ThrowIfCannotSerializeReadOnlyTypes(XmlFormatGeneratorStatics.ClassSerializationExceptionMessageProperty); 215ThrowIfCannotSerializeReadOnlyTypes(XmlFormatGeneratorStatics.CollectionSerializationExceptionMessageProperty); 221ilg.LoadMember(XmlFormatGeneratorStatics.SerializeReadOnlyTypesProperty); 226ilg.Call(XmlFormatGeneratorStatics.ThrowInvalidDataContractExceptionMethod); 238ilg.Call(XmlFormatGeneratorStatics.GetStreamingContextMethod); 251ilg.Call(XmlFormatGeneratorStatics.GetStreamingContextMethod); 273ilg.Call(contextArg, XmlFormatGeneratorStatics.WriteExtensionDataMethod, xmlWriterArg, extensionDataLocal, -1); 287ilg.Call(contextArg, XmlFormatGeneratorStatics.IncrementItemCountMethod, classContract.Members.Count); 297ilg.Call(XmlFormatGeneratorStatics.StoreIsGetOnlyCollectionMethod); 324ilg.Call(contextArg, XmlFormatGeneratorStatics.WriteExtensionDataMethod, xmlWriterArg, extensionDataLocal, memberCount); 330ilg.Call(null, XmlFormatGeneratorStatics.ThrowRequiredMemberMustBeEmittedMethod, member.Name, classContract.UnderlyingType); 362ilg.Call(contextArg, XmlFormatGeneratorStatics.IncrementArrayCountMethod, xmlWriterArg, objectLocal); 388incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountMethod; 392incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(collectionContract.ItemType); 395incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(Globals.TypeOfKeyValuePair.MakeGenericType(collectionContract.ItemType.GetGenericArguments())); 514ilg.Call(contextArg, XmlFormatGeneratorStatics.IncrementItemCountMethod, 1); 674InternalSerialize(XmlFormatGeneratorStatics.InternalSerializeMethod, memberValue, memberType, false /* writeXsiType */); 690ilg.Call(contextArg, XmlFormatGeneratorStatics.WriteNullMethod, xmlWriterArg, memberType, DataContract.IsTypeSerializable(memberType)); 716ilg.Call(contextArg, XmlFormatGeneratorStatics.WriteNullMethod, xmlWriterArg, memberType, DataContract.IsTypeSerializable(memberType)); 719InternalSerialize((isNullableOfT ? XmlFormatGeneratorStatics.InternalSerializeMethod : XmlFormatGeneratorStatics.InternalSerializeReferenceMethod), 757ilg.Call(XmlFormatGeneratorStatics.GetHasValueMethod.MakeGenericMethod(innerType)); 759ilg.Call(XmlFormatGeneratorStatics.GetNullableValueMethod.MakeGenericMethod(innerType)); 768ilg.Call(XmlFormatGeneratorStatics.GetDefaultValueMethod.MakeGenericMethod(memberType));
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (54)
144ilg.Call(contextArg, XmlFormatGeneratorStatics.AddNewObjectMethod, objectLocal); 150ilg.Call(contextArg, XmlFormatGeneratorStatics.GetObjectIdMethod); 159ilg.Call(objectLocal, XmlFormatGeneratorStatics.OnDeserializationMethod, null); 172ilg.Call(XmlFormatGeneratorStatics.GetDateTimeOffsetMethod); 243ilg.Call(contextArg, XmlFormatGeneratorStatics.DemandMemberAccessPermissionMethod); 251ilg.Call(contextArg, XmlFormatGeneratorStatics.DemandSerializationFormatterPermissionMethod); 283ilg.Call(null, XmlFormatGeneratorStatics.GetUninitializedObjectMethod, DataContract.GetIdForInitialization(classContract)); 298ilg.LoadMember(XmlFormatGeneratorStatics.GetStreamingContextMethod); 312ilg.LoadMember(XmlFormatGeneratorStatics.GetStreamingContextMethod); 330ilg.Call(XmlFormatGeneratorStatics.GetRealObjectMethod); 342ilg.New(XmlFormatGeneratorStatics.ExtensionDataObjectCtor); 362ilg.Call(contextArg, XmlFormatGeneratorStatics.IncrementItemCountMethod, memberCount); 372ilg.Call(null, XmlFormatGeneratorStatics.MoveToNextElementMethod, xmlReaderArg); 375ilg.Call(contextArg, XmlFormatGeneratorStatics.GetMemberIndexWithRequiredMembersMethod, xmlReaderArg, memberNamesArg, memberNamespacesArg, memberIndexLocal, requiredIndexLocal, extensionDataLocal); 377ilg.Call(contextArg, XmlFormatGeneratorStatics.GetMemberIndexMethod, xmlReaderArg, memberNamesArg, memberNamespacesArg, memberIndexLocal, extensionDataLocal); 392ilg.Call(null, XmlFormatGeneratorStatics.ThrowRequiredMemberMissingExceptionMethod, xmlReaderArg, memberIndexLocal, requiredIndexLocal, memberNamesArg); 424ilg.Call(contextArg, XmlFormatGeneratorStatics.StoreCollectionMemberInfoMethod, value); 468ilg.Call(contextArg, XmlFormatGeneratorStatics.ReadSerializationInfoMethod, xmlReaderArg, classContract.UnderlyingType); 470ilg.LoadMember(XmlFormatGeneratorStatics.GetStreamingContextMethod); 489ilg.Call(contextArg, XmlFormatGeneratorStatics.ReadAttributesMethod, xmlReaderArg); 490ilg.Call(contextArg, XmlFormatGeneratorStatics.ReadIfNullOrRefMethod, xmlReaderArg, type, DataContract.IsTypeSerializable(type)); 511ilg.Call(contextArg, XmlFormatGeneratorStatics.GetObjectIdMethod); 530ilg.Call(contextArg, XmlFormatGeneratorStatics.AddNewObjectMethod, value); 542ilg.Call(contextArg, XmlFormatGeneratorStatics.GetExistingObjectMethod, objectId, type, name, ns); 573ilg.Call(XmlFormatGeneratorStatics.InternalDeserializeMethod); 576ilg.Call(XmlFormatGeneratorStatics.UnboxPointer); 614constructor = XmlFormatGeneratorStatics.HashtableCtor; 642ilg.Call(contextArg, XmlFormatGeneratorStatics.AddNewObjectMethod, objectLocal); 647ilg.Call(contextArg, XmlFormatGeneratorStatics.GetArraySizeMethod); 651ilg.Call(contextArg, XmlFormatGeneratorStatics.GetObjectIdMethod); 674ilg.Call(contextArg, XmlFormatGeneratorStatics.IncrementItemCountMethod, 1); 678MethodInfo ensureArraySizeMethod = XmlFormatGeneratorStatics.EnsureArraySizeMethod.MakeGenericMethod(itemType); 697MethodInfo trimArraySizeMethod = XmlFormatGeneratorStatics.TrimArraySizeMethod.MakeGenericMethod(itemType); 700ilg.Call(contextArg, XmlFormatGeneratorStatics.AddNewObjectWithIdMethod, objectId, objectLocal); 704ilg.Call(contextArg, XmlFormatGeneratorStatics.IncrementItemCountMethod, size); 709ilg.Call(contextArg, XmlFormatGeneratorStatics.AddNewObjectMethod, objectLocal); 724ilg.Call(contextArg, XmlFormatGeneratorStatics.CheckEndOfArrayMethod, xmlReaderArg, size, memberNamesArg, memberNamespacesArg); 730ilg.Call(contextArg, XmlFormatGeneratorStatics.AddNewObjectWithIdMethod, objectId, objectLocal); 745ilg.LoadMember(XmlFormatGeneratorStatics.GetCollectionMemberMethod); 753ilg.Call(null, XmlFormatGeneratorStatics.ThrowNullValueReturnedForGetOnlyCollectionExceptionMethod, type); 760ilg.Call(XmlFormatGeneratorStatics.GetArrayLengthMethod); 764ilg.Call(contextArg, XmlFormatGeneratorStatics.AddNewObjectMethod, objectLocal); 770ilg.Call(contextArg, XmlFormatGeneratorStatics.IncrementItemCountMethod, 1); 775ilg.Call(null, XmlFormatGeneratorStatics.ThrowArrayExceededSizeExceptionMethod, size, type); 791ilg.Call(contextArg, XmlFormatGeneratorStatics.CheckEndOfArrayMethod, xmlReaderArg, size, memberNamesArg, memberNamespacesArg); 848ilg.Call(contextArg, XmlFormatGeneratorStatics.ResetAttributesMethod); 851ilg.Call(XmlFormatGeneratorStatics.GetItemContractMethod); 854ilg.Call(XmlFormatGeneratorStatics.ReadXmlValueMethod); 901ilg.Call(contextArg, XmlFormatGeneratorStatics.SkipUnknownElementMethod, xmlReaderArg); 910ilg.Call(xmlReaderArg, XmlFormatGeneratorStatics.IsStartElementMethod2, nameArg, nsArg); 915ilg.Call(xmlReaderArg, XmlFormatGeneratorStatics.IsStartElementMethod0); 921ilg.LoadMember(XmlFormatGeneratorStatics.NodeTypeProperty); 928ilg.Call(null, XmlFormatGeneratorStatics.CreateUnexpectedStateExceptionMethod, expectedState, xmlReaderArg); 943ilg.New(XmlFormatGeneratorStatics.SerializationExceptionCtor);
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (47)
178ilg.Call(XmlFormatGeneratorStatics.GetDateTimeOffsetAdapterMethod); 191ilg.Call(contextArg, XmlFormatGeneratorStatics.DemandMemberAccessPermissionMethod); 199ilg.Call(contextArg, XmlFormatGeneratorStatics.DemandSerializationFormatterPermissionMethod); 205ThrowIfCannotSerializeReadOnlyTypes(XmlFormatGeneratorStatics.ClassSerializationExceptionMessageProperty); 210ThrowIfCannotSerializeReadOnlyTypes(XmlFormatGeneratorStatics.CollectionSerializationExceptionMessageProperty); 216ilg.LoadMember(XmlFormatGeneratorStatics.SerializeReadOnlyTypesProperty); 221ilg.Call(XmlFormatGeneratorStatics.ThrowInvalidDataContractExceptionMethod); 233ilg.Call(XmlFormatGeneratorStatics.GetStreamingContextMethod); 246ilg.Call(XmlFormatGeneratorStatics.GetStreamingContextMethod); 256ilg.Call(contextArg, XmlFormatGeneratorStatics.WriteISerializableMethod, xmlWriterArg, objectLocal); 263ilg.LoadMember(XmlFormatGeneratorStatics.ContractNamespacesField); 269ilg.LoadMember(XmlFormatGeneratorStatics.MemberNamesField); 278ilg.LoadMember(XmlFormatGeneratorStatics.ChildElementNamespacesProperty); 288ilg.LoadMember(XmlFormatGeneratorStatics.ExtensionDataProperty); 290ilg.Call(contextArg, XmlFormatGeneratorStatics.WriteExtensionDataMethod, xmlWriterArg, extensionDataLocal, -1); 308ilg.LoadMember(XmlFormatGeneratorStatics.NamespaceProperty); 314ilg.Call(contextArg, XmlFormatGeneratorStatics.IncrementItemCountMethod, classContract.Members.Count); 324ilg.Call(XmlFormatGeneratorStatics.StoreIsGetOnlyCollectionMethod); 339ilg.Call(XmlFormatGeneratorStatics.WriteNamespaceDeclMethod); 347ilg.Call(contextArg, XmlFormatGeneratorStatics.WriteExtensionDataMethod, xmlWriterArg, extensionDataLocal, memberCount); 353ilg.Call(null, XmlFormatGeneratorStatics.ThrowRequiredMemberMustBeEmittedMethod, member.Name, classContract.UnderlyingType); 378ilg.LoadMember(XmlFormatGeneratorStatics.NamespaceProperty); 383ilg.LoadMember(XmlFormatGeneratorStatics.CollectionItemNameProperty); 390ilg.LoadMember(XmlFormatGeneratorStatics.ChildElementNamespaceProperty); 391ilg.Call(XmlFormatGeneratorStatics.WriteNamespaceDeclMethod); 399ilg.Call(contextArg, XmlFormatGeneratorStatics.IncrementArrayCountMethod, xmlWriterArg, objectLocal); 424incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountMethod; 428incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(collectionContract.ItemType); 431incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(Globals.TypeOfKeyValuePair.MakeGenericType(collectionContract.ItemType.GetGenericArguments())); 465moveNextMethod = XmlFormatGeneratorStatics.MoveNextMethod; 467getCurrentMethod = XmlFormatGeneratorStatics.GetCurrentMethod; 501ilg.New(XmlFormatGeneratorStatics.DictionaryEnumeratorCtor); 515ilg.Call(contextArg, XmlFormatGeneratorStatics.IncrementItemCountMethod, 1); 523ilg.Call(dataContractArg, XmlFormatGeneratorStatics.GetItemContractMethod); 528ilg.Call(XmlFormatGeneratorStatics.WriteXmlValueMethod); 638ilg.Call(XmlFormatGeneratorStatics.BoxPointer); 651InternalSerialize(XmlFormatGeneratorStatics.InternalSerializeMethod, memberValue, memberType, writeXsiType); 667ilg.Call(contextArg, XmlFormatGeneratorStatics.WriteNullMethod, xmlWriterArg, memberType, DataContract.IsTypeSerializable(memberType)); 693ilg.Call(contextArg, XmlFormatGeneratorStatics.WriteNullMethod, xmlWriterArg, memberType, DataContract.IsTypeSerializable(memberType)); 696InternalSerialize((isNullableOfT ? XmlFormatGeneratorStatics.InternalSerializeMethod : XmlFormatGeneratorStatics.InternalSerializeReferenceMethod), 735ilg.Call(XmlFormatGeneratorStatics.GetHasValueMethod.MakeGenericMethod(innerType)); 737ilg.Call(XmlFormatGeneratorStatics.GetNullableValueMethod.MakeGenericMethod(innerType)); 746ilg.Call(XmlFormatGeneratorStatics.GetDefaultValueMethod.MakeGenericMethod(memberType)); 775ilg.Call(needsPrefix ? XmlFormatGeneratorStatics.WriteStartElementMethod3 : XmlFormatGeneratorStatics.WriteStartElementMethod2); 780ilg.Call(xmlWriterArg, XmlFormatGeneratorStatics.WriteEndElementMethod);