Пример #1
0
        public bool Equals(PublicWithId other)
        {
            if (other == null)
                return false;

            return Compare(this, other) == 0;
        }
Пример #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;
 }
Пример #3
0
 protected PublicAttributeBase(string name)
 {
     Category = new PublicWithId(new Public(name));
 }
Пример #4
0
 protected PublicAttributeBase(string name, string description, int id)
 {
     Category = new PublicWithId(new Public(name, description), id);
 }
Пример #5
0
 public Parameter(PublicWithId key, string stepId)
     : this(key, stepId, key.Id)
 {
 }