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