Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Use ToArray to create an array from a sequence.
Example
The following example uses ToArray to immediately evaluate a query into an array and to get the third element.
var custQuery =
from cust in db.Customers
where cust.City == "London"
select cust;
Customer[] qArray = custQuery.ToArray();
Dim custQuery = _
From cust In db.Customers _
Where cust.City = "London" _
Select cust
Dim qArray() As Customer = custQuery.ToArray()