April 2017 Entries

Nested Enumerable::Any in C++/CLI (difficult++)

I frequently use the construct in C# (C-Sharp) to cross-reference the contents of two repositories simultaneously with one compound command: IEnumerable<string> arr_strSources = new string[]{"Alpha", "Bravo", "Charlie", "Delta"}; IEnumerable<string> arr_strPieces = new string[] { "phha", "lie", "zelt" }; bool blnRetVal = arr_strPieces.Any(strPiece => arr_strSources.Any(strSource => strSource.Contains(strPiece... System.Diagnostics.Debug.Wr... = {0}", blnRetVal); That ......