Friday, 7 April 2017

Write a query search name start with 'a' from table in Linq.



 string[] names = { "Alonso", "Zheng", "Smith" };
            var queryResults =
                from n in names
                where n.StartsWith("A")
                select n;

No comments:

Post a Comment