Reading an article called "Increase LINQ Query Performance" in July's MSDN magazine, the author states that using an Imports
in VB providing a path to schema in the current project will turn IntelliSense on for XElement. In the code provided, he uses statements like xelement.@name
to retreive attributes values and so on.
I did not try this out myself in VB but I would like to use that in C#. This really looks like LINQ to XSD.
Is there any equivalent in C#? It seems that it is not possible to use a namespace inside C# code, there is no using
equivalent to this Import
statement.