CSharp · Console
using System;
using System.Text.RegularExpressions;
using Gw2Sharp;
using Gw2Sharp.WebApi.V2;
using Gw2Sharp.WebApi.V2.Models;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
public class Program
{
public static void Main()
{
MainAsync().GetAwaiter().GetResult();
}
private static async Task MainAsync() {
var client = new Gw2Client(new Connection());
var professions = await client.WebApi.V2.Specializations.AllAsync();
foreach (var profession in professions.OrderBy(p => !p.Elite)) {
if (profession.Elite) {
Console.WriteLine($"| <strong>{profession.Id}</strong> | <strong>{profession.Name}</strong> | <strong>{profession.Profession}</strong> |");
} else {
Console.WriteLine($"| {profession.Id} | {profession.Name} | {profession.Profession} |");
}
}
}
}