How to use the Count aggregate function with VB9?
Dim AuthorsCount = Select Count(Author) From Author In AllAuthors Where Author.AuthorSince > "1.1.2005"
Class Author
Public Name As String
Public AuthorSince As Date
End Class
Dim AllAuthors = New Author() {Au1, Au2, Au3}
Dim Au1 As Author = {Name := "Peter", AuthorSince:= "1.4.2004"}
etc
When I declare AllAuthors As Integer I got a type conversion error because AllAuthors Is not of IEnumerable(Of Author) which means that Count is not recognized as a function name?
Thanks,
Peter

