예제 #1
0
        public override int CompareToImpl(ISortableNode other, CompilerComparer comparer)
        {
            InliningInfoNode otherInliningInfo = (InliningInfoNode)other;

            if (_module == null)
            {
                Debug.Assert(otherInliningInfo._module != null);
                return(-1);
            }
            else if (otherInliningInfo._module == null)
            {
                return(1);
            }
            return(_module.Assembly.GetName().Name.CompareTo(otherInliningInfo._module.Assembly.GetName().Name));
        }
예제 #2
0
        public override int CompareToImpl(ISortableNode other, CompilerComparer comparer)
        {
            InliningInfoNode otherInliningInfo = (InliningInfoNode)other;

            return(_module.Assembly.GetName().Name.CompareTo(otherInliningInfo._module.Assembly.GetName().Name));
        }