public Caracteristic(Caracteristic other) { Name = other.Name; Minimum = other.Minimum; Maximum = other.Maximum; CurrentValue = other.CurrentValue; BaseValue = other.BaseValue; }
public bool Equals(Caracteristic carac) { if (object.ReferenceEquals(carac, null)) { return(false); } if (object.ReferenceEquals(this, carac)) { return(true); } if (this.GetType() != carac.GetType()) { return(false); } return(this.Name.ToLower() == carac.Name.ToLower()); }