예제 #1
0
            public override int CompareTo(ComponentDataType other)
            {
                if (this.GetType() != other.GetType())
                {
                    return(-1);
                }
                CDTString oth = (CDTString)other;
                int       res = key.CompareTo(oth.key); if (res != 0)

                {
                    return(res);
                }

                res = controlCode.CompareTo(oth.controlCode); if (res != 0)
                {
                    return(res);
                }
                return(data.CompareTo(oth.data));
            }
예제 #2
0
 public CDTString(int APIversion, EventHandler handler, CDTString basis) : this(APIversion, handler, basis.key, basis.controlCode, basis.data)
 {
 }