public MethodEmitter CreateRemoveMethod(MethodAttributes atts) { if (removeMethod != null) { throw new InvalidOperationException("A remove method exists"); } removeMethod = typeEmitter.CreateMethod("remove_" + name, atts); return removeMethod; }