11 references to AddMethod
System.Runtime.Serialization (11)
System\Runtime\Serialization\CollectionDataContract.cs (3)
464
Fx.Assert(this.
AddMethod
!= null || this.Kind == CollectionKind.Array, "Add method cannot be null if the collection is being used as a get-only property");
1344
if (MethodRequiresMemberAccess(this.
AddMethod
))
1352
this.
AddMethod
.Name),
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (4)
1038
ilg.Call(collection, collectionContract.
AddMethod
, value);
1039
if (collectionContract.
AddMethod
.ReturnType != Globals.TypeOfVoid)
1046
ilg.Call(collection, collectionContract.
AddMethod
, pairKey, pairValue);
1047
if (collectionContract.
AddMethod
.ReturnType != Globals.TypeOfVoid)
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (4)
885
ilg.Call(collection, collectionContract.
AddMethod
, pairKey, pairValue);
886
if (collectionContract.
AddMethod
.ReturnType != Globals.TypeOfVoid)
891
ilg.Call(collection, collectionContract.
AddMethod
, value);
892
if (collectionContract.
AddMethod
.ReturnType != Globals.TypeOfVoid)