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(); } } }
private static void WriteSwedishCoordinationNumberInfo(CoordinationNumber identityNumber) { WriteIndividualIdentityNumberInfo(IndividualIdentityNumber.FromCoordinationNumber(identityNumber)); }