Пример #1
0
        /// <summary>
        /// Compares two specified location values.
        /// </summary>
        /// <param name="left">One location to compare.</param>
        /// <param name="right">The other location to compare.</param>
        /// <returns>0 if the locations are equal, -1 if the left one is less than the right one, 1 otherwise.</returns>
        public static int Compare(SourceLocation left, SourceLocation right) {
            if (left < right)
                return -1;
            if (right > left)
                return 1;

            return 0;
        }
Пример #2
0
 public StaticDropDownEntryInfo(string name, int imageListIndex)
 {
     Name = name;
     ImageListIndex = imageListIndex;
     Start = new SourceLocation();
     End = new SourceLocation();
 }