コード例 #1
0
        private void prepareForSet()
        {
            MethodInfo setMethod = Property.GetSetMethod();

            if (setMethod != null)
            {
                this.m_dynamicSetter = new DynamicExecutor(setMethod);
            }
            else
            {
                throw new NotSupportedException("Cannot set the property.");
            }
        }
コード例 #2
0
        private void prepareForSet()
        {
            MethodInfo setMethod = Property.GetSetMethod();

            if (setMethod != null)
            {
                this.m_dynamicSetter = new DynamicExecutor(setMethod);
            }
            else
            {
                throw new NotSupportedException("Cannot set the property.");
            }
        }