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