|
|
Browse by Tags
All Tags » LINQ (RSS)
-
Frequently, the most of people use XPATH to do xml manipulation. But if you want another way to manipulate XML, you can use LINQ to XML.
Supposing that we have the following XML:<?xml version="1.0" encoding="utf-8"?>
<ArrayOfEmployee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
-
In this post i will explain what’s the differences between Cast() and OfType() methods using LINQ, and i will also explain when we should use each method.
These methods allow us to cast an object type to another, but when you’re using the Cast() method and exist some object that isn’t of the expected class type, it will throw ...
|
|
|