Example #1
0
        internal bool StoreStaticField(DmdFieldInfo field, object value)
        {
            var error = runtime.StoreField(context, frame, null, field, value, cancellationToken);

            if (error != null)
            {
                throw new InterpreterMessageException(error);
            }
            return(true);
        }
Example #2
0
        internal bool StoreStaticField(DmdFieldInfo field, object value)
        {
            var error = runtime.StoreField(evalInfo, null, field, value);

            if (error != null)
            {
                throw new InterpreterMessageException(error);
            }
            return(true);
        }