You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
494 B
21 lines
494 B
// See https://aka.ms/new-console-template for more information
|
|
using System.Runtime.InteropServices;
|
|
|
|
using MCTGLib;
|
|
|
|
Console.WriteLine("Hello, World!");
|
|
|
|
Stub stub = new Stub();
|
|
List<User> users = stub.ConstrucList();
|
|
|
|
foreach (User user in users)
|
|
{
|
|
try
|
|
{
|
|
Console.WriteLine(user.Name);
|
|
Console.WriteLine(user.Priorities[0].ToString());
|
|
} catch (ArgumentException erreurNomVide)
|
|
{
|
|
Console.WriteLine(erreurNomVide.Message);
|
|
}
|
|
} |