LINQ(Language Integrated Query) is a new technology with Dot Net framework 3.5 support Querying Data. That means it support Querying Collection, XML, SQL table, Dataset and other objects.
In this post I will discuss LINQ to Object.
LINQ to Object
The functionality of LINQ to object is accomplished through the use of IEnumerable<
IEnemerable
Sequence: Sequence is a logical term if you have a variable of type IEnemerable<
Standard Query Operator:
Most of the standard query operator are Extension methods in the System.Linq.Enumerable static class with an IEnemerable<
Extension Method: An extension method is a static method of a static class that you can call as though it were an instance method of a different class.
public static class StringConversion
{
public static double ToDouble(this String s)
{
return Double.Parse(s);
}
}
Here ToDouble is an extension method. Extension method have this Keyword preceding first parameter.
No comments:
Post a Comment