내가 VB로 변환이Visual Basic의 LINQ는 객체가
var books = System.Xml.Linq.XDocument.Load(_filename).Root.Elements("Book").Select(
x => new Book(
(string)x.Element("Title"),
(string)x.Element("Author"),
(string)x.Element("Publisher"),
(string)x.Element("ISBN")));
return books;
같은 C# 코드를 선택할 수 없습니다하지만 난 내가 선택 부분을 쓸 수있는 방법을 잘 모릅니다.
Dim books = System.Xml.Linq.XDocument.Load(_filename).Root.Elements("Book").
Select(/****what should i write here ***/)
Return books
요소를 문자열로 변환하려면'DirectCast'를 사용해야합니다. – XN16