Lambda Functions in .Net
Lambda expressions in .Net are denoted by the ‘=>’ symbol. These powerful operators can be used to create sleek, optimized loops that perform much faster. The usage below condenses the equivalent of...
View ArticleBind Control to an Object in Windows Forms
Simple solution for basic binding in Windows Forms app. This would NOT be recommended if you are using ASP .Net, Silverlight, WCF, RIA or any other services to retrieve the data as these project types...
View ArticleWinforms Databinding
Snippets below have been condensed from their original sources for brevity. See references for original articles. Dataset usage: using System; using System.Data; using System.Data.SqlClient; namespace...
View ArticleC# ListBox Management Adding Removing Updating Databound Items ASP .Net
The lambda one-liner indicated in the snippet below essentially nests at least two “for/foreach” loops. See my related article for full source. This code snippet is used to populate a drop down list of...
View ArticleMultiple Stored Procedures with same return type in LINQ
Previously you may have achieved this functionality using datareader. Now that you are using LINQ, you may be wondering how to achieve the same with lists of strongly typed objects. Quite a few...
View Article
More Pages to Explore .....