168 references to XmlFormatGeneratorStatics
System.Private.DataContractSerialization (168)
System\Runtime\Serialization\ClassDataContract.cs (1)
1084
_extensionDataSetMethod =
XmlFormatGeneratorStatics
.ExtensionDataSetExplicitMethodInfo;
System\Runtime\Serialization\CollectionDataContract.cs (1)
867
getCurrentMethod =
XmlFormatGeneratorStatics
.GetCurrentMethod;
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (37)
85
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.AddNewObjectMethod, _objectLocal);
108
_ilg.Call(
XmlFormatGeneratorStatics
.GetDateTimeOffsetMethod);
114
_ilg.Call(
XmlFormatGeneratorStatics
.GetMemoryStreamMethod);
241
_ilg.LoadMember(
XmlFormatGeneratorStatics
.GetStreamingContextMethod);
255
_ilg.LoadMember(
XmlFormatGeneratorStatics
.GetStreamingContextMethod);
277
_ilg.Call(
XmlFormatGeneratorStatics
.GetRealObjectMethod);
316
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.IncrementItemCountMethod, memberCount);
328
_ilg.Call(null,
XmlFormatGeneratorStatics
.MoveToNextElementMethod, _xmlReaderArg);
383
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.StoreCollectionMemberInfoMethod, value);
388
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.ResetCollectionMemberInfoMethod);
463
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.ReadSerializationInfoMethod, _xmlReaderArg, classContract.UnderlyingType);
465
_ilg.LoadMember(
XmlFormatGeneratorStatics
.GetStreamingContextMethod);
486
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.ReadAttributesMethod, _xmlReaderArg);
487
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.ReadIfNullOrRefMethod, _xmlReaderArg, type, DataContract.IsTypeSerializable(type));
508
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.GetObjectIdMethod);
527
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.AddNewObjectMethod, value);
539
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.GetExistingObjectMethod, objectId, type, name, string.Empty);
572
_ilg.Call(
XmlFormatGeneratorStatics
.InternalDeserializeMethod);
645
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.AddNewObjectMethod, _objectLocal);
663
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.GetObjectIdMethod);
685
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.IncrementItemCountMethod, 1);
690
MethodInfo ensureArraySizeMethod =
XmlFormatGeneratorStatics
.EnsureArraySizeMethod.MakeGenericMethod(itemType);
709
MethodInfo trimArraySizeMethod =
XmlFormatGeneratorStatics
.TrimArraySizeMethod.MakeGenericMethod(itemType);
712
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.AddNewObjectWithIdMethod, objectId, _objectLocal);
718
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.AddNewObjectWithIdMethod, objectId, _objectLocal);
787
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.IncrementItemCountMethod, 1);
833
_ilg.LoadMember(
XmlFormatGeneratorStatics
.GetCollectionMemberMethod);
848
_ilg.Call(null,
XmlFormatGeneratorStatics
.ThrowNullValueReturnedForGetOnlyCollectionExceptionMethod, type);
854
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.CheckEndOfArrayMethod, _xmlReaderArg, size, _memberNamesArg, _emptyDictionaryStringArg);
866
_ilg.Call(null,
XmlFormatGeneratorStatics
.ThrowNullValueReturnedForGetOnlyCollectionExceptionMethod, type);
873
_ilg.Call(
XmlFormatGeneratorStatics
.GetArrayLengthMethod);
881
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.IncrementItemCountMethod, 1);
886
_ilg.Call(null,
XmlFormatGeneratorStatics
.ThrowArrayExceededSizeExceptionMethod, size, type);
902
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.CheckEndOfArrayMethod, _xmlReaderArg, size, _memberNamesArg, _emptyDictionaryStringArg);
970
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.ResetAttributesMethod);
1035
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.SkipUnknownElementMethod, _xmlReaderArg);
1062
_ilg.Call(null,
XmlFormatGeneratorStatics
.CreateUnexpectedStateExceptionMethod, expectedState, _xmlReaderArg);
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (25)
143
_ilg.Call(
XmlFormatGeneratorStatics
.GetDateTimeOffsetAdapterMethod);
148
_ilg.Call(
XmlFormatGeneratorStatics
.GetMemoryStreamAdapterMethod);
159
ThrowIfCannotSerializeReadOnlyTypes(
XmlFormatGeneratorStatics
.CollectionSerializationExceptionMessageProperty);
165
_ilg.LoadMember(
XmlFormatGeneratorStatics
.SerializeReadOnlyTypesProperty);
170
_ilg.Call(
XmlFormatGeneratorStatics
.ThrowInvalidDataContractExceptionMethod);
182
_ilg.Call(
XmlFormatGeneratorStatics
.GetStreamingContextMethod);
195
_ilg.Call(
XmlFormatGeneratorStatics
.GetStreamingContextMethod);
218
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.WriteExtensionDataMethod, _xmlWriterArg, extensionDataLocal, -1);
238
_ilg.Call(thisObj: _contextArg,
XmlFormatGeneratorStatics
.IncrementItemCountMethod, classMemberCount);
248
XmlFormatGeneratorStatics
.StoreIsGetOnlyCollectionMethod :
249
XmlFormatGeneratorStatics
.ResetIsGetOnlyCollectionMethod);
278
_ilg.Call(thisObj: _contextArg,
XmlFormatGeneratorStatics
.WriteExtensionDataMethod, _xmlWriterArg, extensionDataLocal, memberCount);
286
_ilg.Call(thisObj: null,
XmlFormatGeneratorStatics
.ThrowRequiredMemberMustBeEmittedMethod, member.Name, classContract.UnderlyingType);
319
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.IncrementArrayCountMethod, _xmlWriterArg, _objectLocal);
347
incrementCollectionCountMethod =
XmlFormatGeneratorStatics
.IncrementCollectionCountMethod;
351
incrementCollectionCountMethod =
XmlFormatGeneratorStatics
.IncrementCollectionCountGenericMethod.MakeGenericMethod(collectionContract.ItemType);
354
incrementCollectionCountMethod =
XmlFormatGeneratorStatics
.IncrementCollectionCountGenericMethod.MakeGenericMethod(typeof(System.Collections.Generic.KeyValuePair<,>).MakeGenericType(collectionContract.ItemType.GetGenericArguments()));
472
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.IncrementItemCountMethod, 1);
643
InternalSerialize(
XmlFormatGeneratorStatics
.InternalSerializeMethod, memberValue, memberType, false /* writeXsiType */);
659
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.WriteNullMethod, _xmlWriterArg, memberType, DataContract.IsTypeSerializable(memberType));
685
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.WriteNullMethod, _xmlWriterArg, memberType, DataContract.IsTypeSerializable(memberType));
688
InternalSerialize((isNullableOfT ?
XmlFormatGeneratorStatics
.InternalSerializeMethod :
XmlFormatGeneratorStatics
.InternalSerializeReferenceMethod),
705
_ilg.Call(memberValue,
XmlFormatGeneratorStatics
.GetTypeMethod);
706
_ilg.Call(
XmlFormatGeneratorStatics
.GetTypeHandleMethod);
System\Runtime\Serialization\Json\ReflectionJsonFormatWriter.cs (1)
231
object? defaultValue =
XmlFormatGeneratorStatics
.GetDefaultValue(memberType);
System\Runtime\Serialization\ReflectionReader.cs (1)
186
MethodInfo trimArraySizeMethod =
XmlFormatGeneratorStatics
.TrimArraySizeMethod.MakeGenericMethod(itemType);
System\Runtime\Serialization\ReflectionXmlFormatWriter.cs (1)
165
object? defaultValue =
XmlFormatGeneratorStatics
.GetDefaultValue(memberType);
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (54)
108
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.AddNewObjectMethod, _objectLocal);
114
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.GetObjectIdMethod);
130
_ilg.Call(_objectLocal,
XmlFormatGeneratorStatics
.OnDeserializationMethod, null);
145
_ilg.Call(
XmlFormatGeneratorStatics
.GetDateTimeOffsetMethod);
151
_ilg.Call(
XmlFormatGeneratorStatics
.GetMemoryStreamMethod);
282
_ilg.Call(null,
XmlFormatGeneratorStatics
.GetUninitializedObjectMethod, DataContract.GetIdForInitialization(classContract));
302
_ilg.LoadMember(
XmlFormatGeneratorStatics
.GetStreamingContextMethod);
319
_ilg.LoadMember(
XmlFormatGeneratorStatics
.GetStreamingContextMethod);
343
_ilg.Call(
XmlFormatGeneratorStatics
.GetRealObjectMethod);
358
_ilg.New(
XmlFormatGeneratorStatics
.ExtensionDataObjectCtor);
382
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.IncrementItemCountMethod, memberCount);
392
_ilg.Call(null,
XmlFormatGeneratorStatics
.MoveToNextElementMethod, _xmlReaderArg);
395
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.GetMemberIndexWithRequiredMembersMethod, _xmlReaderArg, _memberNamesArg, _memberNamespacesArg, memberIndexLocal, requiredIndexLocal, extensionDataLocal);
397
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.GetMemberIndexMethod, _xmlReaderArg, _memberNamesArg, _memberNamespacesArg, memberIndexLocal, extensionDataLocal);
412
_ilg.Call(null,
XmlFormatGeneratorStatics
.ThrowRequiredMemberMissingExceptionMethod, _xmlReaderArg, memberIndexLocal, requiredIndexLocal, _memberNamesArg);
449
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.StoreCollectionMemberInfoMethod, value);
454
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.ResetCollectionMemberInfoMethod);
500
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.ReadSerializationInfoMethod, _xmlReaderArg, classContract.UnderlyingType);
502
_ilg.LoadMember(
XmlFormatGeneratorStatics
.GetStreamingContextMethod);
523
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.ReadAttributesMethod, _xmlReaderArg);
524
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.ReadIfNullOrRefMethod, _xmlReaderArg, type, DataContract.IsTypeSerializable(type));
545
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.GetObjectIdMethod);
564
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.AddNewObjectMethod, value);
576
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.GetExistingObjectMethod, objectId, type, name, ns);
608
_ilg.Call(
XmlFormatGeneratorStatics
.InternalDeserializeMethod);
611
_ilg.Call(
XmlFormatGeneratorStatics
.UnboxPointer);
655
constructor =
XmlFormatGeneratorStatics
.DictionaryCtor;
683
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.AddNewObjectMethod, _objectLocal);
688
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.GetArraySizeMethod);
692
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.GetObjectIdMethod);
715
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.IncrementItemCountMethod, 1);
720
MethodInfo ensureArraySizeMethod =
XmlFormatGeneratorStatics
.EnsureArraySizeMethod.MakeGenericMethod(itemType);
739
MethodInfo trimArraySizeMethod =
XmlFormatGeneratorStatics
.TrimArraySizeMethod.MakeGenericMethod(itemType);
742
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.AddNewObjectWithIdMethod, objectId, _objectLocal);
746
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.IncrementItemCountMethod, size);
751
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.AddNewObjectMethod, _objectLocal);
766
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.CheckEndOfArrayMethod, _xmlReaderArg, size, _memberNamesArg, _memberNamespacesArg);
772
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.AddNewObjectWithIdMethod, objectId, _objectLocal);
789
_ilg.LoadMember(
XmlFormatGeneratorStatics
.GetCollectionMemberMethod);
797
_ilg.Call(null,
XmlFormatGeneratorStatics
.ThrowNullValueReturnedForGetOnlyCollectionExceptionMethod, type);
804
_ilg.Call(
XmlFormatGeneratorStatics
.GetArrayLengthMethod);
808
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.AddNewObjectMethod, _objectLocal);
814
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.IncrementItemCountMethod, 1);
819
_ilg.Call(null,
XmlFormatGeneratorStatics
.ThrowArrayExceededSizeExceptionMethod, size, type);
835
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.CheckEndOfArrayMethod, _xmlReaderArg, size, _memberNamesArg, _memberNamespacesArg);
898
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.ResetAttributesMethod);
901
_ilg.Call(
XmlFormatGeneratorStatics
.GetItemContractMethod);
904
_ilg.Call(
XmlFormatGeneratorStatics
.ReadXmlValueMethod);
955
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.SkipUnknownElementMethod, _xmlReaderArg);
964
_ilg.Call(_xmlReaderArg,
XmlFormatGeneratorStatics
.IsStartElementMethod2, nameArg, nsArg);
969
_ilg.Call(_xmlReaderArg,
XmlFormatGeneratorStatics
.IsStartElementMethod0);
975
_ilg.LoadMember(
XmlFormatGeneratorStatics
.NodeTypeProperty);
982
_ilg.Call(null,
XmlFormatGeneratorStatics
.CreateUnexpectedStateExceptionMethod, expectedState, _xmlReaderArg);
994
_ilg.New(
XmlFormatGeneratorStatics
.SerializationExceptionCtor);
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (47)
171
_ilg.Call(
XmlFormatGeneratorStatics
.GetDateTimeOffsetAdapterMethod);
176
_ilg.Call(
XmlFormatGeneratorStatics
.GetMemoryStreamAdapterMethod);
187
ThrowIfCannotSerializeReadOnlyTypes(
XmlFormatGeneratorStatics
.ClassSerializationExceptionMessageProperty);
192
ThrowIfCannotSerializeReadOnlyTypes(
XmlFormatGeneratorStatics
.CollectionSerializationExceptionMessageProperty);
198
_ilg.LoadMember(
XmlFormatGeneratorStatics
.SerializeReadOnlyTypesProperty);
203
_ilg.Call(
XmlFormatGeneratorStatics
.ThrowInvalidDataContractExceptionMethod);
215
_ilg.Call(
XmlFormatGeneratorStatics
.GetStreamingContextMethod);
228
_ilg.Call(
XmlFormatGeneratorStatics
.GetStreamingContextMethod);
241
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.WriteISerializableMethod, _xmlWriterArg, _objectLocal);
249
_ilg.LoadMember(
XmlFormatGeneratorStatics
.ContractNamespacesField);
255
_ilg.LoadMember(
XmlFormatGeneratorStatics
.MemberNamesField);
264
_ilg.LoadMember(
XmlFormatGeneratorStatics
.ChildElementNamespacesProperty);
274
_ilg.LoadMember(
XmlFormatGeneratorStatics
.ExtensionDataProperty);
276
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.WriteExtensionDataMethod, _xmlWriterArg, extensionDataLocal, -1);
298
_ilg.LoadMember(
XmlFormatGeneratorStatics
.NamespaceProperty);
308
_ilg.Call(thisObj: _contextArg,
XmlFormatGeneratorStatics
.IncrementItemCountMethod, classMemberCount);
318
XmlFormatGeneratorStatics
.StoreIsGetOnlyCollectionMethod :
319
XmlFormatGeneratorStatics
.ResetIsGetOnlyCollectionMethod);
334
_ilg.Call(methodInfo:
XmlFormatGeneratorStatics
.WriteNamespaceDeclMethod);
344
_ilg.Call(thisObj: _contextArg,
XmlFormatGeneratorStatics
.WriteExtensionDataMethod, _xmlWriterArg, extensionDataLocal, memberCount);
352
_ilg.Call(thisObj: null,
XmlFormatGeneratorStatics
.ThrowRequiredMemberMustBeEmittedMethod, member.Name, classContract.UnderlyingType);
378
_ilg.LoadMember(
XmlFormatGeneratorStatics
.NamespaceProperty);
383
_ilg.LoadMember(
XmlFormatGeneratorStatics
.CollectionItemNameProperty);
390
_ilg.LoadMember(
XmlFormatGeneratorStatics
.ChildElementNamespaceProperty);
391
_ilg.Call(
XmlFormatGeneratorStatics
.WriteNamespaceDeclMethod);
399
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.IncrementArrayCountMethod, _xmlWriterArg, _objectLocal);
426
incrementCollectionCountMethod =
XmlFormatGeneratorStatics
.IncrementCollectionCountMethod;
430
incrementCollectionCountMethod =
XmlFormatGeneratorStatics
.IncrementCollectionCountGenericMethod.MakeGenericMethod(collectionContract.ItemType);
433
incrementCollectionCountMethod =
XmlFormatGeneratorStatics
.IncrementCollectionCountGenericMethod.MakeGenericMethod(typeof(System.Collections.Generic.KeyValuePair<,>).MakeGenericType(collectionContract.ItemType.GetGenericArguments()));
466
moveNextMethod ??=
XmlFormatGeneratorStatics
.MoveNextMethod;
467
getCurrentMethod ??=
XmlFormatGeneratorStatics
.GetCurrentMethod;
500
_ilg.New(
XmlFormatGeneratorStatics
.DictionaryEnumeratorCtor);
514
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.IncrementItemCountMethod, 1);
522
_ilg.Call(_dataContractArg,
XmlFormatGeneratorStatics
.GetItemContractMethod);
527
_ilg.Call(
XmlFormatGeneratorStatics
.WriteXmlValueMethod);
643
_ilg.Call(
XmlFormatGeneratorStatics
.BoxPointer);
656
InternalSerialize(
XmlFormatGeneratorStatics
.InternalSerializeMethod, memberValue, memberType, writeXsiType);
672
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.WriteNullMethod, _xmlWriterArg, memberType, DataContract.IsTypeSerializable(memberType));
698
_ilg.Call(_contextArg,
XmlFormatGeneratorStatics
.WriteNullMethod, _xmlWriterArg, memberType, DataContract.IsTypeSerializable(memberType));
701
InternalSerialize((isNullableOfT ?
XmlFormatGeneratorStatics
.InternalSerializeMethod :
XmlFormatGeneratorStatics
.InternalSerializeReferenceMethod),
742
_ilg.Call(
XmlFormatGeneratorStatics
.GetHasValueMethod.MakeGenericMethod(innerType));
744
_ilg.Call(
XmlFormatGeneratorStatics
.GetNullableValueMethod.MakeGenericMethod(innerType));
753
_ilg.Call(
XmlFormatGeneratorStatics
.GetDefaultValueMethod.MakeGenericMethod(memberType));
782
_ilg.Call(needsPrefix ?
XmlFormatGeneratorStatics
.WriteStartElementMethod3 :
XmlFormatGeneratorStatics
.WriteStartElementMethod2);
787
_ilg.Call(_xmlWriterArg,
XmlFormatGeneratorStatics
.WriteEndElementMethod);