Support Enumerable Contains and SequenceEqual with null comparer

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Dotnet Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      The C# 14 compiler now unhelpfully targets MemoryExtensions.Contains instead of Enumerable.Contains.

      While this was addressed in CSHARP-5749 there is also a scenario where depending on the type (if it doesn't implement IEquatable<T>) it targets the 3-argument version of MemoryExtensions.Contains passing in a null to the third (optional) argument.

            Assignee:
            Damien Guard
            Reporter:
            Damien Guard
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: