how to use variable in linq expression?

Aug 27, 2008 at 11:30 PM

----------
            var ss = "mp3";
            SystemIndex<SystemSearch> si = new SystemIndex<SystemSearch>();
            var result = from SystemSearch t in si
                         where t.ItemName.EndsWith(ss)
                         select new { t.ItemName, t.ItemAuthors, t.ItemDate, t.Size, t.ItemType, t.ItemPathDisplay };
---------
how can i do like this?
Coordinator
Jan 11, 2009 at 10:18 PM

asin0622:

Bug fixed , please try again!

Please see the Test function “TestFirstMethodNoResults” where I show how to user variables!

Thaks' for your contribution!