14 lines
658 B
TeX
14 lines
658 B
TeX
C\# is an object-oriented programming language that was developed by Microsoft in 2011.
|
|
\Cref{fig:csharp} displays the logo of the programming language.
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=2cm]{exercises/references/csharp.png}
|
|
\caption{The logo of C\#}
|
|
\label{fig:csharp}
|
|
\end{figure}
|
|
|
|
Listing \ref{lst:csharphelloworld} shows a program that prints the text \enquote{Hello LaTeX friends!} to the console. Like Java, C\# makes use of classes and main methods to build executable applications.
|
|
|
|
\lstset{language=csharp}
|
|
\lstinputlisting[label=lst:csharphelloworld, caption=Hello World in C\#]{exercises/references/HelloLateXFriends.cs} |