Example #1
0
 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();
Example #2
0
 public static string PrintAsnModel(AsnModel model)
 => PrintAsnModelWithPadding(model, 0);