Mono.Debugger.Method.CompareTo C# (CSharp) Method

CompareTo() public method

public CompareTo ( object obj ) : int
obj object
return int
        public int CompareTo(object obj)
        {
            Method method = (Method) obj;

            TargetAddress address;
            try {
                address = method.StartAddress;
            } catch {
                return is_loaded ? -1 : 0;
            }

            if (!is_loaded)
                return 1;

            if (address < start)
                return 1;
            else if (address > start)
                return -1;
            else
                return 0;
        }