I would like to proudly announce the release and availability of my new Beginning C# and .NET 2021 Edition book, which was co-authored with Jon Reid. The book contains over 800 pages of material relating to the skills and knowledge required to become a great C# programmer. The book is designed around the premise that […]
Read More →Tags: LINQ
Find a specific value within a generic list with a Lambda Expression using C#
With the release of C# 3.0 came Lambda Expressions. In a previous post I searched a generic list using a delegate, this is because, perhaps, I have done so much programming with C# 2.0 that it’s just a habit now. Time to move onto better, newer things, like Lambda Expressions. In the previous example I […]
Read More →LINQ to XML vs. XML DOM, XMLDOM and LINQ to XML with Lambda Expression
There a numerous reasons why you would need to create an XML file. Configuration settings or using it as a data source are 2 examples. In both cases, you would need to create the XML file. If you have never done it before then the first question is, How do I create, read and modify […]
Read More →Using LINQ to Reflection with Lambda Expressions in C#
I think Lambda expression are cool. Not only are cool, they are pretty powerful and can make your code a lot more readable and compact. I wrote this article here about how to simply use LINQ to Reflection to list the methods and types of an assembly. In this example I will use the same […]
Read More →Order by with LINQ to Reflection using MetadataToken and Lambda in C#
DISCLAIMER: Most if not all of the methods used with Reflection do not return their result in neither alphabetical or declaration order. This is clearly stated within the MSDN library remarks for the reflection methods. If you can avoid designing based on an expected order of results from any Reflection method, that would be best […]
Read More →Using LINQ with Reflection in C#
Reflection is used to read meta data from a .Net assembly. For example, if you what to find all the method inside of a .dll, you can use Reflection to do it. You can also load and execute the method. I find it an interesting concept that we have the capability to search and use […]
Read More →Lesson 11 – LINQ to NHibernate, jqGrid SubGrid and MVC
In Lesson 11 you will learn how to: Add a SubGrid to the View Populate SubGrid with a method from a Controller using HQL and ICriteria Upgrade to NHibernate version 3.0 Beta Change and HQL query to LINQ to NHibernate
Read More →