Exemple #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;
        }
Exemple #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;
        }