private static string PrintAsnModelWithPadding(AsnModel model, int padding) => new StringBuilder() .AppendLine() .AppendLine($"{new string(' ', padding)}ASN: {model.ASN}") .AppendLine($"{new string(' ', padding)}Name: {model.Name}") .AppendLine($"{new string(' ', padding)}Description: {model.Description}") .AppendLine($"{new string(' ', padding)}Country Code: {model.CountryCode}") .ToString();
public static string PrintAsnModel(AsnModel model) => PrintAsnModelWithPadding(model, 0);