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)); }
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)); }
public override int CompareToImpl(ISortableNode other, CompilerComparer comparer) { return(_pInvokeModuleData.CompareTo(((PInvokeModuleFixupNode)other)._pInvokeModuleData, comparer)); }