示例#1
0
        public bool Equals(Dados other)
        {
            Processo aux = (Processo)other;

            if (this.pid == aux.pid)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
示例#2
0
        public int CompareTo(Dados other)
        {
            Processo aux = (Processo)other;

            if (this.pid < aux.pid)
            {
                return(-1);
            }
            else if (this.pid == aux.pid)
            {
                return(0);
            }
            else
            {
                return(1);
            }
        }