Esempio n. 1
0
 private bool Equals(EnumerationItem other)
 {
     return(this._Id == other._Id &&
            this._IsDefault == other._IsDefault &&
            this._IsLast == other._IsLast &&
            this._IsTop == other._IsTop &&
            this._IsActive == other._IsActive &&
            string.Equals(this._Name, other._Name) &&
            string.Equals(this._Type, other._Type) &&
            this._Position == other._Position &&
            this._ParentId == other._ParentId &&
            string.Equals(this._PositionName, other._PositionName) &&
            this._ProjectId == other._ProjectId);
 }
Esempio n. 2
0
        internal EnumerationItem(EnumerationItem item)
        {
            if (item == null)
            {
                throw new ArgumentNullException(nameof(item));
            }

            this.Id           = item.Id;
            this.IsActive     = item.IsActive;
            this.IsDefault    = item.IsDefault;
            this.Name         = item.Name;
            this.ParentId     = item.ParentId;
            this.Position     = item.Position;
            this.PositionName = item.PositionName;
            this.ProjectId    = item.ProjectId;
            this.Type         = item.Type;
            this.IsLast       = item.IsLast;
            this.IsTop        = item.IsTop;
        }