1. const string Text = @ "Historically, the world of data and the world of objects" + 2 @ "Have not been the integrated. Programmers work in C # or Visual Basic "+ 3 @" and also in SQL or XQuery. On the one side are concepts such as classes, "+ 4 @" objects, fields, inheritance, and. NET Framework APIs. On the other side "+ 5 @" are tables, columns, rows, nodes, and separate languages for de Aling with "+ 6 @" them. Data types often require translation between the two worlds; There are "+ 7 @" different standard functions. Because the object world has no notion's query, a "+ 8 @" Query can only be represented As a string without compile-time type checking or "+ 9 @" IntelliSense support in the IDE . Transferring data from SQL tAbles or XML trees to "+ @" objects in memory is often tedious and error-prone. ";
One const string searchterm = "Data"; The var Source = text.
Split (new[] {', '? ', '! ', ', '; ', ': ', ', '}, stringsplitoptions.removeemptyentries); 16 17//Create query and ignore case compare var matchquery = from Word in source whe Re string. Equals (Word, searchterm, stringcomparison.invariantcultureignorecase) select Word;