예제 #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;
        }