C Sharp Assignment Help

C# is a .Net Framework programming language. C# which is also knows as “C Sharp”. C # is based on OOPS concept which is provide by Microsoft and C# run on .Net Framework. C# based on Object orientation Programming so the features of OOPS like, Data Hiding, encapsulation, inheritance, polymorphism etc are used. C # is designed for common Language Infrastructure which is also pronounced as CLI. CLI is a specification that tells runtime environment and executable code.

We can development variety of Application through C# language i.e.:
  1. Web Application
  2. Web service Application
  3. Window Application
  4. Distributed Application
  5. Mobile Application
  6. Database Application

.Net Framework: -

The .Net framework is a software development platform developed by Microsoft to run multi-platform application. This Framework support many languages like C#, visual Basic, Cobol, JavaScript, C++ etc. This framework run on Window platform. In 2002, the first version of .Net framework was introduced. When It was introduced the Name was .Net framework 1.0 but recently .Net framework is 4.7.1.

.Net framework is used to make both Form-Based Application and Web-Based Application.

Below is some of components of .Net framework are:
  1. Common Language Runtime (CLR)
  2. Common Language Specification
  3. Windows Presentation Foundation
  4. Metadata and Assemblies
  5. The .Net Framework Class Library
  6. Windows Communication Foundation (WCF)
  7. LINQ
  8. Common Type System
  9. ADO.Net
  10. Windows Workflow Foundation (WF)

How C# program Execute

C# → # compiler → Common Language Interpreter.

Microsoft Provides Different types of Development Tools for C# are given below:
  1. Visual studio 2010
  2. Visual C# 2010 Express

How to Install Visual Studio for Window OS

  1. Run Downloaded vs_community__15414.exe file.
  2. Click on continue button on Next screen.
  3. run
  4. Wait for some minute, Visual studio start downloading the necessary file.
  5. After Download, the next screen will show for products. Choose products as per Requirement. After Choosing product, click on install. Or Sometimes If you already chosen Product at downloading time. Then This screen will not show in this step.
  6. In next screen, Choose the Development Environment and click on Install. You can select multiple Environment.
  7. Now Visual Studio Community 2017, Start downloading some initial files and install packages.
  8. Once Download Completed, It will ask to Reboot computer. Select Restart. (Highly Recommended)
  9. IDE open after Post Reboot.
  10. Choose the Theme color of IDE.
  11. Click on Start Visual Studio. IDE Screen Will Come.

How to Create Program in Visual Studio

  1. Start Visual Studio
  2. Select “Create a New Project” Option.
  3. Choose Which types of Application you want to developed. Here Console App (.Net core) is selected. Click on Next button.
  4. Configure Your Next Project in this screen. Write Project name. By Default, Location will be “C:\Users\Sam\source\repos”. Do not need to select location option. Click on Create button.
  5. IDE Will open. The automatically some code will generated.
  6. Click On “ConsoleApp5” Menu, which is pointed by “Red” Arrow.
  7. Below Output Will come.
In Above IDE We have Successfully Create “Hello World!” Program:

Code:

                        using System;

                        namespace ConsoleApp5
                        {
                            class Program
                            {
                                static void Main(string[] args)
                                {
                                    Console.WriteLine("Hello World!");
                                }
                            }
                        }

                    

Output:

Hello World!
Lets Here are explained different parts of the above executed Program:
  1. In The first line “using System”. This include the systems namespace in the program. There are various multiple using statement in a program.
  2. Namespace Declaration: It is the collection of classes. So, in this program Program class it contains.
  3. Class Declaration:The class Program contains the method and data definitions that your program using here.The Program class has only one method Main.
  4. 4. In the next line, Main method Has been declared, which is the entry point for all C# programs.
  5. Within the Main Method, we have defined the behaviour with statement Console.WriteLine("Hello World");
Plagiarism Checker

NEW YEAR OFFER 50% OFF !!! Order Now

NEW YEAR OFFER 50% OFF !!

Lets take Best opinion from our Expert Tutors Today! Order Now