Sharp sign in LaTex

# sign is reserved in LaTex so you have to always escape it: \#

There’re acouple of methods to get C# symbol:

Regular text:

C\#

Math environment:

$ C\# $

My personal favourite:
C\texttt{\#}

 

Here’s the result for all the versions: