PEAPI.ClassDef.AddMethod C# (CSharp) Method

AddMethod() public method

Add a method to this class
public AddMethod ( MethAttr mAtts, ImplAttr iAtts, string name, Param ret_param, Param pars ) : MethodDef
mAtts MethAttr attributes for this method
iAtts ImplAttr implementation attributes for this method
name string method name
ret_param Param
pars Param parameters
return MethodDef
		public MethodDef AddMethod(MethAttr mAtts, ImplAttr iAtts, string name, 
				Param ret_param, Param [] pars) {
			// Console.WriteLine("Adding method " + name + " to class " + this.name);
			MethodDef meth = new MethodDef (metaData, mAtts, iAtts, name, ret_param, pars);
			methods.Add(meth);
			return meth;
		}

Same methods

ClassDef::AddMethod ( string name, Param ret_param, Param pars ) : MethodDef
ClassDef::AddMethod ( string name, Type retType, Param pars ) : MethodDef