Exemplo n.º 1
0
        //method too compare band names in list and sort them accordingly
        public int CompareTo(object obj)
        {
            Band that = (Band)obj;

            return(this.BandName.CompareTo(that.BandName));
        }
Exemplo n.º 2
0
        public int CompareTo(object obj)
        {
            Band otherBand = obj as Band;

            return(this.BandName.CompareTo(otherBand.BandName));
        }