About C#:
- C# is an object-oriented language developed by Microsoft for developing software that runs on the .Net platform.
- C# is the most popular and widely used for windows apps and Gaming.
- C# is growing well beyond Microsoft domains and is used for the development of Android and iOS apps on the Xamarin platform.
- Demand for C# is growing exponentially, and the future is bright for c#. Because it’s developed by Microsoft, the tech behemoth will likely make endless iterations and add useful features.
Download Visual Studio:
- Go to https://visualstudio.microsoft.com/downloads
- And Download Visual Studio Community Edition.
- Install it.
- In the installation Select below options:
- Select “.NET desktop development” and “Universal Windows Platform development” under Workloads
- Select “.NET 5.0 Runtime, and .NET Core 3.1 Runtime(LTS)” (select latest versions) under Individual components
- Then Click on install.
Lunching Visual studio First Time:
- Choose the Visual studio theme: Choose a theme based on your wish.
- Setup:
- Click on Create a new project.
- Select (C#) Console Application (Basic Project). And then click on Next
- Configure your new project:
- Project name: <Give your project name(Eg: CSharpFundamentals )>
- Location: <path of workshop>
- Solution name: (Solution is a container which holds multiple projects) <Give the solution name Eg: Testing Colleges>
- Then Click on Next.
- Addition information:
- Target Framework: <Select .NET latest version on dropdown>
- And then Click on Create.
More about C#:
- Every C# program is saved with the .cs extension(CSharp).
- In C# there is only one entry point(Main() method) in the project.
- If you have multiple Main() method classes in a single project then we need to close all the entry points and make only one entry point for that:
- then right-click on the Main() method class
- if you want to/ don’t want to make as an entry > Click on Properties > Change Build action (Select "C# Compile"(to make as an entry point), None (To don’t want to execute)).
- If the build action of a class is None then the class not going to use any more, even if we can’t access the methods inside that class)
No comments:
Post a Comment