namespace ConsoleApp6SerializeJson
{
internal class Program
{
static void Main(string[] args)
{
var lns = File.ReadAllText(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "School.json"));
List<School> schools = JsonConvert.DeserializeObject<List<School>>(lns);
foreach (School school in schools)
{
Console.WriteLine(school.grade);
Console.WriteLine(school.name);
Console.WriteLine(school.location);
}
Console.ReadKey();
}
}
}
School.cs
namespace ConsoleApp6SerializeJson
{
internal class School
{
public string name { get; set; }
public string location { get; set; }
public int grade { get; set; }
}
}
三台设备ar1、ar2、ar3 ar1 通过ssh密码方式登陆ar3 ar2 通过免密码方式登陆ar3
ar3的配置如下:进入路由器 rsa local-key-pair creat
选择y(yes)
Input the bits in the modulus[default 512]:2048 //需要创建密钥的长度user-interface v…