https://bugzilla.novell.com/show_bug.cgi?id=653502
https://bugzilla.novell.com/show_bug.cgi?id=653502#c4 --- Comment #4 from Rainer Mager <[email protected]> 2010-11-16 15:06:53 UTC --- I just noticed one more thing about this. It seems to be related to Arrays. Basically, if my initial source of data is an array of objects (structs only?) then I can't do LINQ queries over it. I found a quick fix, but it adds overhead. Problem Case: SomeStruct[] arr = new SomeStruct[] { xxx, yyy, zz }; arr.Sum(item => item.IntProp); Solved Case: SomeStruct[] arr = new SomeStruct[] { xxx, yyy, zz }; new List<SomeStruct>(arr).Sum(item => item.IntProp); Basically, initializing a List with the Array and then using the List instead solves it. But, as I mentioned, there is overhead in this and it is not a good solution. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
