Exemple #1
0
        public void AddProperty(FacetProperty property)
        {
            if (this.Properties.Any(p => p.Name.Equals(property.Name)))
            {
                throw new InvalidOperationException($"duplicate property name: {property.Name}");
            }

            this.Properties = this.Properties.Union(property.Yield()).ToList();
        }
Exemple #2
0
 public void RemoveProperty(FacetProperty property)
 {
     this.Properties = this.Properties.Where(p => !p.Equals(property)).ToList();
 }