Visual Studio: It is a tool that has multiple programming languages.For example C#,F#,etc.
We will use C#
- C# support Object oriented programming.
- Library base
- This has a lot of type of application, e.g console
- Unified execution: support all inside.
What is a Solution?
- A solution can contain multiple languages.
- A solution has a ".sln" extension
- The solution is represented by folders ".sh"
- A solution contain projects
The project organizes " .cs" files .
A namespace is a grouper, container or collection logical of classes.
Using-> This brings context to that file, collections of classes contained in a namespace.
The object browser: This shows that has each library of the class or the project.
Object browser->namespace->class,structure, interface.
We can attach references of other project or "ddl" file.
Example Class library don't have a main class, and library have "ddl" extension.
Execute project
Using debugging
start Debuggers
we will add the following sentences :
int number1 = 1;
int number2 = 2;
int sum = number1 + number2;
Console.WriteLine("we are using a console project"+sum);
Console.ReadLine();
In this example we want to result of two numbers and show using the console.
step over: Go to the next line
step into: Go to that line
step out: Not enter
Build or Build Solution: To Compile the Solution
Rebuild Solution: To remove the last files and generate others
Clean Solution:To delete any intermediate and output files.
We will create a class Student, we will use the class library.
- Rename the name the library. Right click on the "Operation" project and change the name. We also change the name the namespace and the class.
A person has name, last name,age.




















No hay comentarios:
Publicar un comentario