These are chat archives for Ruhrpottpatriot/GW2.NET

31st
Jan 2016
Steven Liekens
@StevenLiekens
Jan 31 2016 11:34
sorry I don't even know what DbGeography is used for
let alone what you should use to replace it
about hashset: I wouldn't use that because it doesn't have TryGetValue
and the API doesn't guarantee that the response contains values for every key
returns
[
{
id: "summer",
url: "https://static.staticwars.com/quaggans/summer.jpg"
},
{
id: "aloha",
url: "https://static.staticwars.com/quaggans/aloha.jpg"
}
]
Steven Liekens
@StevenLiekens
Jan 31 2016 11:39
if you want to write safe code, it's easier with a dictionary
object result;
if (dictionary.TryGetValue("foo", out result))
{
    // result != null
}
else
{
    // result == null
}
it's very relevant to what we're trying to do
Steven Liekens
@StevenLiekens
Jan 31 2016 14:31
turns out it's possible to make PCLs in the new project system
but it's very tricky
you have to use the full name of the PCL profile in the frameworks section of project.json
and explicitly list each assembly that you want to use
".NETPortable,Version=v4.6,Profile=Profile151": {
      "frameworkAssemblies": {
        "mscorlib": "",
        "System": "",
        "System.Core": "",
        "System.Runtime": "",
        "System.Linq": "",
        "System.Collections": ""
      }
    }
which is nuts because how can you know which assemblies you need?