protected virtual void SetObjectProperty()

in src/nms-api/Util/PrimitiveMapInterceptor.cs [80:97]


        protected virtual void SetObjectProperty(string name, object value)
        {
            FailIfReadOnly();

            try
            {
                if (!this.allowByteArrays && (value is byte[]))
                {
                    throw new NotSupportedException("Byte Arrays not allowed in this PrimitiveMap");
                }

                this.properties[name] = value;
            }
            catch (Exception ex)
            {
                throw NMSExceptionSupport.CreateMessageFormatException(ex);
            }
        }