18/82
\frametitle{LinQ: Querying Collections}

  \begin{code}{\textwidth}{}
    \begin{lstlisting}[language=Java,basicstyle=\ttfamily\small,morekeywords={var,from,in,Where,Select,foreach,Console,orderby}]
var contacts =
  customers
  .Where(c => c.State == "WA")
  .Select(c => new{c.Name, c.Phone});
    \end{lstlisting}
  \end{code}
  \pause\vspace{0ex}

  Here customers is of type \emph{IEnumerable} !
  \medskip

  IEnumerable<...> provides methods for querying:
  \smallskip

  \begin{code}{\textwidth}{}