public Serialize ( |
||
profile | ||
리턴 | string |
public string Serialize(AzureSMProfile profile)
{
return JsonConvert.SerializeObject(new
{
Environments = profile.Environments.Values.ToList(),
Subscriptions = profile.Subscriptions.Values.ToList(),
Accounts = profile.Accounts.Values.ToList()
}, Formatting.Indented);
}
public override string ToString() { JsonProfileSerializer jsonSerializer = new JsonProfileSerializer(); return jsonSerializer.Serialize(this); }