public IMethodBuilder DefineMethod(string name, MethodAttributes attributes, IType returnType, IType[] parameters, bool entryPoint) { var builder = new AsmMethodBuilder(this, returnType, parameters, attributes, name, entryPoint); TypeMethods.Add(builder); return(builder); }