Esempio n. 1
0
        public bool Equals(PublicWithId other)
        {
            if (other == null)
                return false;

            return Compare(this, other) == 0;
        }
Esempio n. 2
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);
 }
Esempio n. 5
0
 public Parameter(PublicWithId key, string stepId)
     : this(key, stepId, key.Id)
 {
 }