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