I downloaded some C# code off the net. I quickly realized they were using C# 6.0 because they were using automatic property initializes. I also saw this syntax:
var keyId = $"{clientId} - {key}";
a few lines later, keyid is referenced in an equality statement.
var prot = new KeyStore.PasswordProtection(service.ToCharArray());
var ks = LoadKeyStore(clientId, service);
var aliases = ks.Aliases();
while(aliases.HasMoreElements)
{
var alias = aliases.NextElement().ToString();
if(alias == keyId)
So it seems like its expecting keyId to be parsed or processed in some way.
I cannot seem to find anything on this syntax. I looked up C# operators. Is this just a syntax error?