Ejemplo n.º 1
0
        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);
        }