16 references to AddMethod
System.Private.DataContractSerialization (16)
System\Runtime\Serialization\CollectionDataContract.cs (3)
363if (Kind != CollectionKind.Array && AddMethod == null) 1480if (MethodRequiresMemberAccess(AddMethod)) 1487AddMethod!.Name),
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (6)
1010Debug.Assert(collectionContract.AddMethod != null); 1012_ilg.Call(collection, collectionContract.AddMethod, value); 1013if (collectionContract.AddMethod.ReturnType != Globals.TypeOfVoid) 1020Debug.Assert(collectionContract.AddMethod != null); 1022_ilg.Call(collection, collectionContract.AddMethod, pairKey, pairValue); 1023if (collectionContract.AddMethod.ReturnType != Globals.TypeOfVoid)
System\Runtime\Serialization\ReflectionReader.cs (2)
565collectionContract.AddMethod!.Invoke(resultCollection, new object?[] { key, value }); 605MethodInfo? addMethod = collectionContract.AddMethod;
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (5)
915Debug.Assert(collectionContract.AddMethod != null); 935_ilg.Call(collection, collectionContract.AddMethod, pairKey, pairValue); 936if (collectionContract.AddMethod.ReturnType != Globals.TypeOfVoid) 941_ilg.Call(collection, collectionContract.AddMethod, value); 942if (collectionContract.AddMethod.ReturnType != Globals.TypeOfVoid)