c# was initially created specifically for use with .NET platform.
c# is used with the .NET framework, which allows you access to a number of libraries that specifically intended for use with Windows.
The common language runtime (CLR) is the most important component of the .NET framework that allows you to compile and execute applications written in either c#, visual basic or C++.