public bool Equals(PublicWithId other) { if (other == null) return false; return Compare(this, other) == 0; }
private static int Compare(PublicWithId a, PublicWithId b) { int categoryOk = string.Compare(a.Name, b.Name, true); if (categoryOk == 0) return a.Id - b.Id; return categoryOk; }
protected PublicAttributeBase(string name) { Category = new PublicWithId(new Public(name)); }
protected PublicAttributeBase(string name, string description, int id) { Category = new PublicWithId(new Public(name, description), id); }
public Parameter(PublicWithId key, string stepId) : this(key, stepId, key.Id) { }