Category: C#

How to pass arguments to your C# program

To pass arguments to a C# program, all what you need to do is to run the program in command prompt and provide list of arguments in front of program name: For example: MyProgram.exe ali noman faisal shahid In above command 4 arguments as names are passed to the C# program MyProgram.exe However, sometimes you

How to create a library in C#

To create a library in C#, you need to perform following steps: Step 1: Create a new C# project in visual studio. After the project is created, add a new class in the project with the following code: Class Name and File Name: MathLib.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace