public MethodEmitter CreateSetMethod(string name, MethodAttributes attrs, MethodInfo methodToOverride,
                                             params Type[] parameters)
        {
            if (setMethod != null)
            {
                throw new InvalidOperationException("A set method exists");
            }

            setMethod = new MethodEmitter(parentTypeEmitter, name, attrs, methodToOverride);
            return(setMethod);
        }