Popular uses for C#
C# is a multi-purpose language and can be found in many applications that span across different devices and operating systems. Web, mobile, backend, and gaming may be popular uses of the language but are not the only ones.
Full stack web development with ASP.NET
ASP.NET is a part of the .NET platform that focuses on web development and is part of the .NET SDK. Although web development can exclusively rely on HTML, JavaScript, and CSS, to make an interactive web page, ASP.NET allows web developers to use C# to build full stack web applications. ASP.NET includes Razor, which allows C# developers to write code that looks like C# with some minor differences as a frontend language and mix it with HTML to get data from the backend and display it on the page. C# can be used to build APIs, a backend task, with ASP.NET. Here’s an example of a web page using Razor to display a list of pizzas in the browser:
Figure 4.8 – An example...