What is the relation between C# and .NET Platforms?

C# and .NET Platforms: There have been various coding languages in the world right now. From the OG programming language C, Fortran, SQL, etc to Python, JavaScript and so many more in the modern era. But how often have we heard about programming languages having frameworks? The exception stands in C#. We have discussed C# in a previously posted article and to summarise we can C# is a high-level which has ancestorial references from its parental language C. In this article, we would be discussing the .NET framework and the relation it has to the programming language C# and how C# was created with the help of .NET platforms.

What are .NET platforms?

.NET is a free open-source development app that can be used across various platforms to develop applications, websites, software etc with a varied amount of languages. With .NET you can create applications for mobile, web, desktop, IoT, and so much more. .NET can be accessed on operating systems such as Linux, Microsoft Windows as well as macOS.

Also Read: What is Web 3.0? The Future

It provides a common set of various base class libraries and APIs that have common ground with every single one of the .NET applications. This is also great as depending on the various operating system you operate you are provided with a bunch of additional APIs that are supported by that specific operating system. One such example is ASP.NET which can be considered a cross-platform which provides additional APIs to develop an application on Windows and Linux.

.NET supports Common Language Infrastructure which allows interoperability among the various platforms and programming languages independently.

Two main components constitute .NET platforms and we’d be discussing that now.

  • CoreCLR: The .NET runtime. Works to execute all the CLI programs and functions as an in-built compiler.
  • CoreFX: This is the component that is responsible for implementing all the CLI standard library functions for basic operations such as file management, network communication, threading, reflection, etc. It is also called the unified base class library.

It allows you the flexibility to use the programming language you prefer as well as provides you with some references that can enhance and allow you to use your approach while building an application. Hence, while you have a whole framework to yourself you can always customize it to your personal preference and requirements which allow the user to be able to implement their creativity and skills and hence, result in better and desired outcomes.

Relation between C# and .NET

C# is a programming language that is run on. NET’s common language runtime contains the set of libraries that are on the .NET platforms and are also equipped with the C# programming language. Hence, .NET platforms provide the basis for the language C#. C# is not the only language that runs on .NET platforms, languages such as F# and Visual basic are also based on .NET platforms.


With this, we conclude our article and hopefully, provided you with a better knowledge about .NET frameworks and how C# works based on it and the various functions that are provided by the framework to the language.