public MethodEmitter CreateAddMethod(MethodAttributes atts) { if (addMethod != null) { throw new InvalidOperationException("An add method exists"); } addMethod = typeEmitter.CreateMethod("add_" + name, atts); return addMethod; }