Objective In this article, I am going to show, how we could achieve filtering and sorting in LINQ to object I have created two classes for my explanation purpose. Student class is having details of students and Hostel class is having details of hostel. Both classes are having a properties HostelNumber common. I will beContinueContinue reading “LINQ to Object Part #2: Filtering and Sorting”
Author Archives: Dhananjay Kumar
LINQ to Object Part #1: Projection
Objective In this article, I am going to show, how we could achieve projection in LINQ to object. I will explain different types of projection and how to achieve them over a collection using LINQ. I have created two classes for my explanation purpose. Student class is having details of students and Hostel class isContinueContinue reading “LINQ to Object Part #1: Projection”
LINQ to XML in SILVERLIGHT 3.0
Objective This article will explain how to use LINQ to XML to read data from a XML file and bind that to SILVERLIGHT 3.0 Data Grid. XML file will be read in a WCF service and WCF service will return a List to be bind in a Grid. Step 1 Create a SILVERLIGHT application. SelectContinueContinue reading “LINQ to XML in SILVERLIGHT 3.0”
Seven quick points in Understanding SharePoint 2007 list definition
Objective This article will give basic 7 theatrical points on SharePoint List definition. When we create a new site in SharePoint, it gets created as instance of SharePoint Site Definition. Each instance of Site Definition is having List Definitions. So when we create a list in SharePoint site, it gets created as instance of ListContinueContinue reading “Seven quick points in Understanding SharePoint 2007 list definition”
LINQ to XML Part # 5: Catching Parsing Exceptions
Objective This is a very high level article which will explain; how to handle exception in parsing XML using LINQ to XML. Problem Let us say, we are parsing a below string using XElement.Parse String strParse = “<Address><Name>Dhananjay Kumar </Name> “; This string is not valid formed. But XElement.Parse won’t be able to catch theContinueContinue reading “LINQ to XML Part # 5: Catching Parsing Exceptions”
LINQ to XML Part #4: Different way of Parsing string to create XML tree
Objective In this article, I will show different way of parsing string to create XML tree using LINQ to XML. What is Parsing of XML document? Parsing of XML document means reading XML document, identifies the function of each of the document and then makes this information available in memory for rest of the program.ContinueContinue reading “LINQ to XML Part #4: Different way of Parsing string to create XML tree”
LINQ to XML Part # 3: Functional Construction of XML Tree
Objective This article will give an explanation on; how to create a XML tree using Functional Construction method of LINQ to XML. What is Functional Construction? Functional Construction is ability to create a XML tree in a single statement. LINQ to XML is being used to create XML tree in a single statement. The featuresContinueContinue reading “LINQ to XML Part # 3: Functional Construction of XML Tree”
LINQ to XML Part #2(XElement Class)
Objective In this article, I will give explanation on XElement class. This class is used to construct XML Elements.What is Elements in XML? XML Element is fundamental XML constructs. An Element has a name and optional attributes. An XML Elements can have nested Elements called Nodes also. XElement class XElement Class is defined as belowContinueContinue reading “LINQ to XML Part #2(XElement Class)”
LINQ to XML Part #1(XAttribute Class)
Objective In this article, I will give explanation on XAttribute class. This class is used to construct Attributes in XML Elements. What is Attribute in XML? XML Attribute is a Name/Value pair associated with XML elements. XAttribute class represents XML Attributes. XAttribute class XAttribute Class is defined as below in namespace System.Xml.Linq. And it inheritsContinueContinue reading “LINQ to XML Part #1(XAttribute Class)”
Forms on SharePoint lists
Objective This article will give a very high level description on various forms on a SharePoint list. When we create a new custom list in SharePoint, SharePoint creates three forms (*.aspx) for the custom list. In fact for all list these forms are provided by SharePoint. Let us say, there is a listContinueContinue reading “Forms on SharePoint lists”