It is the better place to get started with C#
application development. Here we’ll use the Console application to explore the
C# concepts. Console is actually nothing but the command prompt (or DOS Prompt)
of Windows OS. It doesn’t have any GUI (Graphical User Interface)
- · First of all, create the new project.
- · Now create the ‘.Net Framework Console Application’
- · Now we’ve successfully created our Project in C#.
- ·
Let’s discuss the namespaces which are
included in our project by default. SystemThis namespace is used for the general purpose operations, mathematical computations and even it is also helpful to generate the random numbers. It is also helpful for the Garbage Collection and exception handling.System.Collection.GenericThis namespace deals with the collections or containers. With the help of this namespace we can create any type of collection.System.LinqIt is used to work with data. We can filter our data and manipulate different kind of operations with the help of linq.System.TextIt is used in working with Text, Encoding features and stuff like that.System.Threading TasksIt is used to build the multi-threaded applications.
As we already know that
C# is actually case sensitive. So the Main() method spellings should be
capitalize otherwise CLR doesn’t find any entry point of your application.
string[] args are actually
command line arguments, we actually use these command line arguments on the
start of application. We give data to our application just on the beginning.
- · Right Click on your Project in Solution Explorer and Open the Properties of your project.
- · And input some values here.
- ·
Now write some code into the Main() and
apply the breakpoint at the start of the function.
0 comments:
Post a Comment