コード例 #1
0
        public int CompareTo(Barcode other)
        {
            int compare = 0;

            if (BarcodeType != other.BarcodeType)
            {
                return(BarcodeType.CompareTo(other.BarcodeType));
            }
            if (BarcodeValue != other.BarcodeValue)
            {
                return(BarcodeValue.CompareTo(other.BarcodeValue));
            }

            return(compare);
        }