There are a few sites, such as URI Online Judge , which allow programmers to practice programming and share knowledge through specific exercises and logical and mathematical challenges.
But some are restricted in language. The one mentioned above, for example, only accepts responses in C ++ and Java.
You can find other programming learning environments that accept other languages, preferably with support for C # .