Design and Implementation of Distributed Applications 2023-20241st Year, 1st SemesterMEIC - Alameda CampusMEIC - Taguspark Campus METI - Taguspark Campus |
![]() |
Lab. 1 - Introduction to the .NET Framework and gRPC over C#
Support material:
- OverrideNewTest.cs (this program allows you to test the redefinition of method in C#)
- Slides (pdf)
- References:
- A Tour of C# - basic online documentation
- Code Project - how to do ... in .NET
A - Introduction to the .NET Framework
A.1 - Hello World
a) Implement a "Hello World" application as a Console Application:
- Open VisualStudio.NET.
- Create a new C# console app (.Net Core) project.
- Use the WriteLine method from class Console.
A.2 - Name List
a) Implement an app that manages a list of names.
- Create a new C# console application project.
- Add a new class file (.cs)
- Define the IListaNomes interface, which should include prototypes for:
- Adding a new name to the list.
- Returning all names in the list, as a string.
- Erasing the list's content.
- Create a class that implements IListaNomes and create an instance of it in your console application (use the ArrayList class to store the names).
- Build a console application that uses all features provided by the IListaNomes interface
b) Place breakpoints in each of the class' methods and check that each is called and executed correctly.