コード例 #1
0
        public int CompareTo(PInvokeMethodData other, CompilerComparer comparer)
        {
            var entryPointCompare = StringComparer.Ordinal.Compare(EntryPointName, other.EntryPointName);

            if (entryPointCompare != 0)
            {
                return(entryPointCompare);
            }

            var moduleCompare = ModuleData.CompareTo(other.ModuleData, comparer);

            if (moduleCompare != 0)
            {
                return(moduleCompare);
            }

            return(CharSetMangling.CompareTo(other.CharSetMangling));
        }
コード例 #2
0
        public override int CompareToImpl(ISortableNode other, CompilerComparer comparer)
        {
            var flagsCompare = _flags.CompareTo(((PInvokeMethodFixupNode)other)._flags);

            if (flagsCompare != 0)
            {
                return(flagsCompare);
            }

            var moduleCompare = _moduleData.CompareTo(((PInvokeMethodFixupNode)other)._moduleData, comparer);

            if (moduleCompare != 0)
            {
                return(moduleCompare);
            }

            return(string.Compare(_entryPointName, ((PInvokeMethodFixupNode)other)._entryPointName));
        }
コード例 #3
0
 public override int CompareToImpl(ISortableNode other, CompilerComparer comparer)
 {
     return(_pInvokeModuleData.CompareTo(((PInvokeModuleFixupNode)other)._pInvokeModuleData, comparer));
 }