62/66
\begin{frame}[fragile]
  \frametitle{LinQ: Under the Hood}
  
  \begin{code}{\textwidth}{Syntactic sugar...}
    \begin{lstlisting}[language=Java,basicstyle=\ttfamily\small,morekeywords={var,from,in,where,select,foreach,Console,orderby}]
var contacts =
  from c in customers
  where c.State == "WA"
  select new { c.Name, c.Phone };
    \end{lstlisting}
  \end{code}
  \smallskip
  
  Syntactic sugar for an expression with lambda expressions:
  \smallskip
  
  \begin{code}{\textwidth}{Query operations with lambda expressions}
    \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}
\end{frame}