Hello. It is required to include source code from the MoreLinq project into the Visual Studion 2015 Community project. I tried to run sulution and compile the projects, but the projects were not even loaded, the following error occurs:
C: \ Users \ rostov.d \ Desktop \ MoreLINQ-master \ MoreLinq \ MoreLinq.csproj: error: The default XML namespace for this project should be MSBuild XML namespace. If the project was created in MSBuild 2003 format, add xmlns = "http://schemas.microsoft.com/developer/msbuild/2003" to the element. If the project was created in the old format 1.0 or 1.2, convert it to MSBuild 2003 format. C: \ Users \ rostov.d \ Desktop \ MoreLINQ-master \ MoreLinq \ MoreLinq.csproj
I tried to copy only the necessary source code files into my project and compile. But Visual Studio swears at the construction of this type:
return _(); IEnumerable<T> _() I suspect that this is due to the delayed execution of Linq queries. I could not find documentation on the Internet. What is this "return"_(); and how to compile such code under the Visual Stuio 2015 Community? An example of a function with this return:
public static IEnumerable<T> Exclude<T>(this IEnumerable<T> sequence, int startIndex, int count) { if (sequence == null) throw new ArgumentNullException(nameof(sequence)); if (startIndex < 0) throw new ArgumentOutOfRangeException(nameof(startIndex)); if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); return _(); IEnumerable<T> _() { var index = -1; var endIndex = startIndex + count; using (var iter = sequence.GetEnumerator()) { // yield the first part of the sequence while (iter.MoveNext() && ++index < startIndex) yield return iter.Current; // skip the next part (up to count items) while (++index < endIndex && iter.MoveNext()) continue; // yield the remainder of the sequence while (iter.MoveNext()) yield return iter.Current; } } }