Announcement

Collapse
No announcement yet.

[CLOSED] [#1499] [16.0] Lambda expression in Array.Sort does not compile as expected

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    [CLOSED] [#1499] [16.0] Lambda expression in Array.Sort does not compile as expected

    https://deck.net/3204e288603aba763197451e204e5277
    This code compiles fine in VS 2015 but not in Bridge.NET
    public class Program
    {
        public class X
        {
            public string Name;
        }
    
        public static void Main()
        {
            X[] x = new X[0];
            Array.Sort(x, (a, b) => string.Compare(a.Name, b.Name));
        }
    }
    What am I doing wrong?

    #2
    Thanks Vladimir for adding this to the list of V16 issues
    https://github.com/bridgedotnet/Bridge/issues/2499

    Comment


      #3
      Fix for issue #2499 merged into master branch and will be included in the next Bridge.NET release.

      Comment


        #4
        This thread was also moved to the Bugs forum.

        Comment

        Working...
        X