Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }