In ilasm/tests:
* invalid-method.il: New. Reference to undefined method.
* invalid-field.il: New. Reference to undefined field.
In ilasm/codegen:
* CodeGen.cs (CodeGen.Write): Use only filename as the name of the
module.
* TypeDef.cs (TypeDef.ResolveAsMethodRef): New.
(TypeDef.ResolveMethod): Change signature to take ret_type, params
etc instead of a signature string. Also, if the method does not exist,
then use ResolveAsMethodRef to return a MethodRef for it.
(TypeDef.ResolveVarargMethod): Likewise.
(TypeDef.ResolveField): Likewise.
* MethodRef.cs (MethodRef.Resolve): Update use of TypeDef.Resolve*
methods.
* FieldRef.cs (FieldRef.Resolve): Update use of TypeDef.ResolveField.
* PropertyDef.cs (PropertyDef.AsMethodDef): Throws an exception is the
method is not a MethodDef.
(PropertyDef.Define): Use AsMethodDef to ensure that get/set/other are
MethodDefs.
* EventDef.cs (EventDef.AsMethodDef): Same as PropertyDef.
(EventDef.Define): Likewise.
git-svn-id: svn+ssh://mono-cvs.ximian.com/source/trunk/mcs@57045 e3ebcda4-bce8-0310-ba0a-eca2169e7518