Exemplo n.º 1
0
 private static void Sample_ParseSwedishCoordinationNumbers()
 {
     foreach (var input in RawInputs)
     {
         WriteHeader($"Input: {input}");
         if (CoordinationNumber.TryParse(input, out var identityNumber))
         {
             WriteSwedishCoordinationNumberInfo(identityNumber);
         }
         else
         {
             Console.Error.WriteLine("Unable to parse the input as a SwedishCoordinationNumber.");
             WriteSpace();
         }
     }
 }
Exemplo n.º 2
0
 private static void WriteSwedishCoordinationNumberInfo(CoordinationNumber identityNumber)
 {
     WriteIndividualIdentityNumberInfo(IndividualIdentityNumber.FromCoordinationNumber(identityNumber));
 }