示例#1
0
        public void Add(IVariable variable, string getter, string setter)
        {
            if (variable == null)
            {
                throw new ArgumentNullException("Code Property");
            }

            TemplateProperty property = new TemplateProperty(variable, getter, setter);

            this.properties[property.Name] = property;
        }
示例#2
0
        public void Add(IVariable variable, bool canGet, bool canSet)
        {
            if (variable == null)
            {
                throw new ArgumentNullException("Code Property");
            }

            TemplateProperty property = new TemplateProperty(variable, canGet, canSet);

            this.properties[property.Name] = property;
        }