Esempio n. 1
0
 public void SetProperty(TNDProperty propertyToSet)
 {
     for (int idx = 0; idx < this.Property.Count; idx++)
     {
         TNDProperty property = this.Property[idx];
         if (string.Equals(property.Name, propertyToSet.Name, StringComparison.Ordinal))
         {
             this.Property[idx] = propertyToSet;
             return;
         }
     }
     this.Property.Add(propertyToSet);
 }
Esempio n. 2
0
        public void SetProperty <T>(string name, T value)
        {
            TNDProperty property = this.GetProperty(name);

            if (property == null)
            {
                this.Property.Add(TNDProperty.Create <T>(name, value));
            }
            else
            {
                property.Value = value;
            }
        }