tag:blogger.com,1999:blog-4769944162168337875.post9133165464887766064..comments2023-11-03T04:00:01.479-05:00Comments on Palkar's Blog: List.Exists(Predicate match)Unknownnoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-4769944162168337875.post-52145494185801126272008-10-17T07:40:00.000-05:002008-10-17T07:40:00.000-05:00That's great.Well I'm glad I added this blog here,...That's great.<BR/>Well I'm glad I added this blog here, trying to shade some light on things that I learned and in rewards I learned things even better ;)<BR/><BR/>thanks guys!!Deepakhttps://www.blogger.com/profile/14295733512640136439noreply@blogger.comtag:blogger.com,1999:blog-4769944162168337875.post-35870051934385075372008-10-17T01:27:00.000-05:002008-10-17T01:27:00.000-05:00Palkar,Some more features of C# 3.0 * Extention me...Palkar,<BR/><BR/>Some more features of C# 3.0 <BR/><BR/>* Extention method<BR/>public static int Squre(this int n)<BR/>{<BR/> return n*n ;<BR/>}<BR/><BR/><BR/>The method will added in Squre method for integer type veriable<BR/><BR/>int i = 2;<BR/>int j = i.Squre(); //j=4<BR/><BR/>* Object Initializers<BR/><BR/>short hand object initializer methods<BR/><BR/>public class Point<BR/>{<BR/> publicRajul Patelhttps://www.blogger.com/profile/13700663723014894340noreply@blogger.comtag:blogger.com,1999:blog-4769944162168337875.post-42651219621217328892008-10-17T01:08:00.000-05:002008-10-17T01:08:00.000-05:00Hi Palkar,in C# 3.0, you just need to write single...Hi Palkar,<BR/><BR/>in C# 3.0, you just need to write single line without delegate, this uses the lmbda expression.<BR/><BR/>Console.Write(l.Exists(p => p.Equals("Red")));<BR/><BR/>Have fun with C# 3.0.Imranhttps://www.blogger.com/profile/06974863164594039994noreply@blogger.com