112 references to ScanAllMembers
System.Private.DataContractSerialization (112)
System\Runtime\Serialization\ClassDataContract.cs (1)
1248
ConstructorInfo? ctor = UnderlyingType.GetConstructor(Globals.
ScanAllMembers
, SerInfoCtorArgs);
System\Runtime\Serialization\CollectionDataContract.cs (2)
798
s_buildIncrementCollectionCountDelegateMethod ??= typeof(CollectionDataContractCriticalHelper).GetMethod(nameof(BuildIncrementCollectionCountDelegate), Globals.
ScanAllMembers
)!;
897
s_buildCreateGenericDictionaryEnumerator ??= typeof(CollectionDataContractCriticalHelper).GetMethod(nameof(BuildCreateGenericDictionaryEnumerator), Globals.
ScanAllMembers
)!;
System\Runtime\Serialization\Json\JsonFormatGeneratorStatics.cs (26)
108
s_collectionItemNameProperty = typeof(XmlObjectSerializerWriteContextComplexJson).GetProperty("CollectionItemName", Globals.
ScanAllMembers
);
118
typeof(ExtensionDataObject).GetConstructor(Globals.
ScanAllMembers
, Type.EmptyTypes))!;
141
s_getItemContractMethod = typeof(CollectionDataContract).GetProperty("ItemContract", Globals.
ScanAllMembers
)!.GetGetMethod(nonPublic: true);
154
s_getJsonDataContractMethod = typeof(JsonDataContract).GetMethod("GetJsonDataContract", Globals.
ScanAllMembers
);
167
s_getJsonMemberIndexMethod = typeof(XmlObjectSerializerReadContextComplexJson).GetMethod("GetJsonMemberIndex", Globals.
ScanAllMembers
);
180
s_getRevisedItemContractMethod = typeof(XmlObjectSerializerWriteContextComplexJson).GetMethod("GetRevisedItemContract", Globals.
ScanAllMembers
);
193
s_getUninitializedObjectMethod = typeof(XmlFormatReaderGenerator).GetMethod("UnsafeGetUninitializedObject", Globals.
ScanAllMembers
, new Type[] { typeof(Type) });
206
s_isStartElementMethod0 = typeof(XmlReaderDelegator).GetMethod("IsStartElement", Globals.
ScanAllMembers
, Type.EmptyTypes);
218
s_isStartElementMethod2 = typeof(XmlReaderDelegator).GetMethod("IsStartElement", Globals.
ScanAllMembers
, new Type[] { typeof(XmlDictionaryString), typeof(XmlDictionaryString) });
230
s_localNameProperty = typeof(XmlReaderDelegator).GetProperty("LocalName", Globals.
ScanAllMembers
);
242
s_namespaceProperty = typeof(XmlReaderDelegator).GetProperty("NamespaceProperty", Globals.
ScanAllMembers
);
266
s_moveToContentMethod = typeof(XmlReaderDelegator).GetMethod("MoveToContent", Globals.
ScanAllMembers
);
278
s_nodeTypeProperty = typeof(XmlReaderDelegator).GetProperty("NodeType", Globals.
ScanAllMembers
);
304
s_readJsonValueMethod = typeof(DataContractJsonSerializer).GetMethod("ReadJsonValue", Globals.
ScanAllMembers
);
329
s_throwDuplicateMemberExceptionMethod = typeof(XmlObjectSerializerReadContextComplexJson).GetMethod("ThrowDuplicateMemberException", Globals.
ScanAllMembers
);
341
s_throwMissingRequiredMembersMethod = typeof(XmlObjectSerializerReadContextComplexJson).GetMethod("ThrowMissingRequiredMembers", Globals.
ScanAllMembers
);
377
s_useSimpleDictionaryFormatReadProperty = typeof(XmlObjectSerializerReadContextComplexJson).GetProperty("UseSimpleDictionaryFormat", Globals.
ScanAllMembers
);
389
s_useSimpleDictionaryFormatWriteProperty = typeof(XmlObjectSerializerWriteContextComplexJson).GetProperty("UseSimpleDictionaryFormat", Globals.
ScanAllMembers
);
401
s_writeAttributeStringMethod = typeof(XmlWriterDelegator).GetMethod("WriteAttributeString", Globals.
ScanAllMembers
, new Type[] { typeof(string), typeof(string), typeof(string), typeof(string) });
413
s_writeEndElementMethod = typeof(XmlWriterDelegator).GetMethod("WriteEndElement", Globals.
ScanAllMembers
, Type.EmptyTypes);
426
s_writeJsonISerializableMethod = typeof(XmlObjectSerializerWriteContextComplexJson).GetMethod("WriteJsonISerializable", Globals.
ScanAllMembers
);
438
s_writeJsonNameWithMappingMethod = typeof(XmlObjectSerializerWriteContextComplexJson).GetMethod("WriteJsonNameWithMapping", Globals.
ScanAllMembers
);
451
s_writeJsonValueMethod = typeof(DataContractJsonSerializer).GetMethod("WriteJsonValue", Globals.
ScanAllMembers
);
463
s_writeStartElementMethod = typeof(XmlWriterDelegator).GetMethod("WriteStartElement", Globals.
ScanAllMembers
, new Type[] { typeof(XmlDictionaryString), typeof(XmlDictionaryString) });
476
s_writeStartElementStringMethod = typeof(XmlWriterDelegator).GetMethod("WriteStartElement", Globals.
ScanAllMembers
, new Type[] { typeof(string), typeof(string) });
502
s_getJsonMemberNameMethod = typeof(XmlObjectSerializerReadContextComplexJson).GetMethod("GetJsonMemberName", Globals.
ScanAllMembers
, new Type[] { typeof(XmlReaderDelegator) });
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (2)
454
ConstructorInfo? ctor = classContract.UnderlyingType.GetConstructor(Globals.
ScanAllMembers
, JsonFormatGeneratorStatics.SerInfoCtorArgs);
954
_ilg.Call(typeof(JsonReaderDelegator).GetMethod(readArrayMethod, Globals.
ScanAllMembers
)!);
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (3)
420
ConstructorInfo dictEnumCtor = enumeratorType.GetConstructor(Globals.
ScanAllMembers
, new Type[] { Globals.TypeOfIDictionaryEnumerator })!;
428
ConstructorInfo dictEnumCtor = enumeratorType.GetConstructor(Globals.
ScanAllMembers
, new Type[] { ctorParam })!;
595
Globals.
ScanAllMembers
,
System\Runtime\Serialization\PrimitiveDataContract.cs (5)
70
_helper.XmlFormatWriterMethod = typeof(XmlWriterDelegator).GetMethod(WriteMethodName, Globals.
ScanAllMembers
, new Type[] { UnderlyingType, typeof(XmlDictionaryString), typeof(XmlDictionaryString) })!;
72
_helper.XmlFormatWriterMethod = typeof(XmlObjectSerializerWriteContext).GetMethod(WriteMethodName, Globals.
ScanAllMembers
, new Type[] { typeof(XmlWriterDelegator), UnderlyingType, typeof(XmlDictionaryString), typeof(XmlDictionaryString) })!;
86
_helper.XmlFormatContentWriterMethod = typeof(XmlWriterDelegator).GetMethod(WriteMethodName, Globals.
ScanAllMembers
, new Type[] { UnderlyingType })!;
88
_helper.XmlFormatContentWriterMethod = typeof(XmlObjectSerializerWriteContext).GetMethod(WriteMethodName, Globals.
ScanAllMembers
, new Type[] { typeof(XmlWriterDelegator), UnderlyingType })!;
95
_helper.XmlFormatReaderMethod ??= typeof(XmlReaderDelegator).GetMethod(ReadMethodName, Globals.
ScanAllMembers
)!;
System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (70)
22
s_writeStartElementMethod2 = typeof(XmlWriterDelegator).GetMethod("WriteStartElement", Globals.
ScanAllMembers
, new Type[] { typeof(XmlDictionaryString), typeof(XmlDictionaryString) });
36
s_writeStartElementMethod3 = typeof(XmlWriterDelegator).GetMethod("WriteStartElement", Globals.
ScanAllMembers
, new Type[] { typeof(string), typeof(XmlDictionaryString), typeof(XmlDictionaryString) });
50
s_writeEndElementMethod = typeof(XmlWriterDelegator).GetMethod("WriteEndElement", Globals.
ScanAllMembers
, Type.EmptyTypes);
64
s_writeNamespaceDeclMethod = typeof(XmlWriterDelegator).GetMethod("WriteNamespaceDecl", Globals.
ScanAllMembers
, new Type[] { typeof(XmlDictionaryString) });
84
s_dictionaryEnumeratorCtor = typeof(CollectionDataContract.DictionaryEnumerator).GetConstructor(Globals.
ScanAllMembers
, new Type[] { Globals.TypeOfIDictionaryEnumerator });
127
s_getItemContractMethod = typeof(CollectionDataContract).GetProperty("ItemContract", Globals.
ScanAllMembers
)!.GetMethod;
141
s_isStartElementMethod2 = typeof(XmlReaderDelegator).GetMethod("IsStartElement", Globals.
ScanAllMembers
, new Type[] { typeof(XmlDictionaryString), typeof(XmlDictionaryString) });
155
s_isStartElementMethod0 = typeof(XmlReaderDelegator).GetMethod("IsStartElement", Globals.
ScanAllMembers
, Type.EmptyTypes);
170
s_getUninitializedObjectMethod = typeof(XmlFormatReaderGenerator).GetMethod("UnsafeGetUninitializedObject", Globals.
ScanAllMembers
, new Type[] { typeof(int) })!;
201
s_nodeTypeProperty = typeof(XmlReaderDelegator).GetProperty("NodeType", Globals.
ScanAllMembers
);
212
internal static ConstructorInfo ExtensionDataObjectCtor => s_extensionDataObjectCtor ??= typeof(ExtensionDataObject).GetConstructor(Globals.
ScanAllMembers
, Type.EmptyTypes)!;
223
s_hashtableCtor = Globals.TypeOfHashtable.GetConstructor(Globals.
ScanAllMembers
, Type.EmptyTypes);
237
s_getStreamingContextMethod = typeof(XmlObjectSerializerContext).GetMethod("GetStreamingContext", Globals.
ScanAllMembers
);
251
s_getCollectionMemberMethod = typeof(XmlObjectSerializerReadContext).GetMethod("GetCollectionMember", Globals.
ScanAllMembers
);
265
s_storeCollectionMemberInfoMethod = typeof(XmlObjectSerializerReadContext).GetMethod("StoreCollectionMemberInfo", Globals.
ScanAllMembers
, new Type[] { typeof(object) });
279
s_resetCollectionMemberInfoMethod = typeof(XmlObjectSerializerReadContext).GetMethod("ResetCollectionMemberInfo", Globals.
ScanAllMembers
, Type.EmptyTypes);
293
s_storeIsGetOnlyCollectionMethod = typeof(XmlObjectSerializerWriteContext).GetMethod("StoreIsGetOnlyCollection", Globals.
ScanAllMembers
);
307
s_resetIsGetOnlyCollection = typeof(XmlObjectSerializerWriteContext).GetMethod("ResetIsGetOnlyCollection", Globals.
ScanAllMembers
);
321
s_throwNullValueReturnedForGetOnlyCollectionExceptionMethod = typeof(XmlObjectSerializerReadContext).GetMethod("ThrowNullValueReturnedForGetOnlyCollectionException", Globals.
ScanAllMembers
);
335
s_throwArrayExceededSizeExceptionMethod = typeof(XmlObjectSerializerReadContext).GetMethod("ThrowArrayExceededSizeException", Globals.
ScanAllMembers
);
349
s_incrementItemCountMethod = typeof(XmlObjectSerializerContext).GetMethod("IncrementItemCount", Globals.
ScanAllMembers
);
364
s_internalDeserializeMethod = typeof(XmlObjectSerializerReadContext).GetMethod("InternalDeserialize", Globals.
ScanAllMembers
, new Type[] { typeof(XmlReaderDelegator), typeof(int), typeof(RuntimeTypeHandle), typeof(string), typeof(string) });
378
s_moveToNextElementMethod = typeof(XmlObjectSerializerReadContext).GetMethod("MoveToNextElement", Globals.
ScanAllMembers
);
393
s_getMemberIndexMethod = typeof(XmlObjectSerializerReadContext).GetMethod("GetMemberIndex", Globals.
ScanAllMembers
);
408
s_getMemberIndexWithRequiredMembersMethod = typeof(XmlObjectSerializerReadContext).GetMethod("GetMemberIndexWithRequiredMembers", Globals.
ScanAllMembers
);
422
s_throwRequiredMemberMissingExceptionMethod = typeof(XmlObjectSerializerReadContext).GetMethod("ThrowRequiredMemberMissingException", Globals.
ScanAllMembers
);
436
s_skipUnknownElementMethod = typeof(XmlObjectSerializerReadContext).GetMethod("SkipUnknownElement", Globals.
ScanAllMembers
);
451
s_readIfNullOrRefMethod = typeof(XmlObjectSerializerReadContext).GetMethod("ReadIfNullOrRef", Globals.
ScanAllMembers
, new Type[] { typeof(XmlReaderDelegator), typeof(Type), typeof(bool) });
465
s_readAttributesMethod = typeof(XmlObjectSerializerReadContext).GetMethod("ReadAttributes", Globals.
ScanAllMembers
);
479
s_resetAttributesMethod = typeof(XmlObjectSerializerReadContext).GetMethod("ResetAttributes", Globals.
ScanAllMembers
);
493
s_getObjectIdMethod = typeof(XmlObjectSerializerReadContext).GetMethod("GetObjectId", Globals.
ScanAllMembers
);
507
s_getArraySizeMethod = typeof(XmlObjectSerializerReadContext).GetMethod("GetArraySize", Globals.
ScanAllMembers
);
521
s_addNewObjectMethod = typeof(XmlObjectSerializerReadContext).GetMethod("AddNewObject", Globals.
ScanAllMembers
);
535
s_addNewObjectWithIdMethod = typeof(XmlObjectSerializerReadContext).GetMethod("AddNewObjectWithId", Globals.
ScanAllMembers
);
549
s_replaceDeserializedObjectMethod = typeof(XmlObjectSerializerReadContext).GetMethod("ReplaceDeserializedObject", Globals.
ScanAllMembers
);
564
s_getExistingObjectMethod = typeof(XmlObjectSerializerReadContext).GetMethod("GetExistingObject", Globals.
ScanAllMembers
);
578
s_getRealObjectMethod = typeof(XmlObjectSerializerReadContext).GetMethod("GetRealObject", Globals.
ScanAllMembers
);
592
s_ensureArraySizeMethod = typeof(XmlObjectSerializerReadContext).GetMethod("EnsureArraySize", Globals.
ScanAllMembers
);
606
s_trimArraySizeMethod = typeof(XmlObjectSerializerReadContext).GetMethod("TrimArraySize", Globals.
ScanAllMembers
);
620
s_checkEndOfArrayMethod = typeof(XmlObjectSerializerReadContext).GetMethod("CheckEndOfArray", Globals.
ScanAllMembers
);
649
s_readSerializationInfoMethod = typeof(XmlObjectSerializerReadContext).GetMethod("ReadSerializationInfo", Globals.
ScanAllMembers
);
663
s_createUnexpectedStateExceptionMethod = typeof(XmlObjectSerializerReadContext).GetMethod("CreateUnexpectedStateException", Globals.
ScanAllMembers
, new Type[] { typeof(XmlNodeType), typeof(XmlReaderDelegator) });
678
s_internalSerializeReferenceMethod = typeof(XmlObjectSerializerWriteContext).GetMethod("InternalSerializeReference", Globals.
ScanAllMembers
);
693
s_internalSerializeMethod = typeof(XmlObjectSerializerWriteContext).GetMethod("InternalSerialize", Globals.
ScanAllMembers
);
708
s_writeNullMethod = typeof(XmlObjectSerializerWriteContext).GetMethod("WriteNull", Globals.
ScanAllMembers
, new Type[] { typeof(XmlWriterDelegator), typeof(Type), typeof(bool) });
722
s_incrementArrayCountMethod = typeof(XmlObjectSerializerWriteContext).GetMethod("IncrementArrayCount", Globals.
ScanAllMembers
);
736
s_incrementCollectionCountMethod = typeof(XmlObjectSerializerWriteContext).GetMethod("IncrementCollectionCount", Globals.
ScanAllMembers
, new Type[] { typeof(XmlWriterDelegator), typeof(ICollection) });
750
s_incrementCollectionCountGenericMethod = typeof(XmlObjectSerializerWriteContext).GetMethod("IncrementCollectionCountGeneric", Globals.
ScanAllMembers
);
764
s_getDefaultValueMethod = typeof(XmlObjectSerializerWriteContext).GetMethod(nameof(XmlObjectSerializerWriteContext.GetDefaultValue), Globals.
ScanAllMembers
);
786
s_getNullableValueMethod = typeof(XmlObjectSerializerWriteContext).GetMethod("GetNullableValue", Globals.
ScanAllMembers
);
800
s_throwRequiredMemberMustBeEmittedMethod = typeof(XmlObjectSerializerWriteContext).GetMethod("ThrowRequiredMemberMustBeEmitted", Globals.
ScanAllMembers
);
814
s_getHasValueMethod = typeof(XmlObjectSerializerWriteContext).GetMethod("GetHasValue", Globals.
ScanAllMembers
);
829
s_writeISerializableMethod = typeof(XmlObjectSerializerWriteContext).GetMethod("WriteISerializable", Globals.
ScanAllMembers
);
840
get => s_writeExtensionDataMethod ??= typeof(XmlObjectSerializerWriteContext).GetMethod("WriteExtensionData", Globals.
ScanAllMembers
)!;
851
s_writeXmlValueMethod = typeof(DataContract).GetMethod("WriteXmlValue", Globals.
ScanAllMembers
);
866
s_readXmlValueMethod = typeof(DataContract).GetMethod("ReadXmlValue", Globals.
ScanAllMembers
);
880
s_namespaceProperty = typeof(DataContract).GetProperty("Namespace", Globals.
ScanAllMembers
);
894
s_contractNamespacesField = typeof(ClassDataContract).GetField("ContractNamespaces", Globals.
ScanAllMembers
);
908
s_memberNamesField = typeof(ClassDataContract).GetField("MemberNames", Globals.
ScanAllMembers
);
926
s_childElementNamespacesProperty = typeof(ClassDataContract).GetProperty("ChildElementNamespaces", Globals.
ScanAllMembers
);
940
s_collectionItemNameProperty = typeof(CollectionDataContract).GetProperty("CollectionItemName", Globals.
ScanAllMembers
);
955
s_childElementNamespaceProperty = typeof(CollectionDataContract).GetProperty("ChildElementNamespace", Globals.
ScanAllMembers
);
969
s_getDateTimeOffsetMethod = typeof(DateTimeOffsetAdapter).GetMethod("GetDateTimeOffset", Globals.
ScanAllMembers
);
983
s_getDateTimeOffsetAdapterMethod = typeof(DateTimeOffsetAdapter).GetMethod("GetDateTimeOffsetAdapter", Globals.
ScanAllMembers
);
997
s_getMemoryStreamMethod = typeof(MemoryStreamAdapter).GetMethod("GetMemoryStream", Globals.
ScanAllMembers
);
1011
s_getMemoryStreamAdapterMethod = typeof(MemoryStreamAdapter).GetMethod("GetMemoryStreamAdapter", Globals.
ScanAllMembers
);
1053
s_throwInvalidDataContractExceptionMethod = typeof(DataContract).GetMethod("ThrowInvalidDataContractException", Globals.
ScanAllMembers
, new Type[] { typeof(string), typeof(Type) });
1067
s_serializeReadOnlyTypesProperty = typeof(XmlObjectSerializerWriteContext).GetProperty("SerializeReadOnlyTypes", Globals.
ScanAllMembers
);
1081
s_classSerializationExceptionMessageProperty = typeof(ClassDataContract).GetProperty("SerializationExceptionMessage", Globals.
ScanAllMembers
);
1095
s_collectionSerializationExceptionMessageProperty = typeof(CollectionDataContract).GetProperty("SerializationExceptionMessage", Globals.
ScanAllMembers
);
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (1)
882
_ilg.Call(typeof(XmlReaderDelegator).GetMethod(readArrayMethod, Globals.
ScanAllMembers
)!);
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (2)
505
ConstructorInfo dictEnumCtor = enumeratorType.GetConstructor(Globals.
ScanAllMembers
, new Type[] { ctorParam })!;
628
_ilg.Call(typeof(XmlWriterDelegator).GetMethod(writeArrayMethod, Globals.
ScanAllMembers
, new Type[] { type, typeof(XmlDictionaryString), typeof(XmlDictionaryString) })!);