示例#1
0
 /// <summary>
 /// Copy account properties from the given account
 /// </summary>
 /// <param name="account">The account to copy to (target)</param>
 /// <param name="other">The account to copy from (source)</param>
 public static void CopyFrom(this IAzureAccount account, IAzureAccount source)
 {
     if (source != null)
     {
         account.Credential = source.Credential;
         account.Id         = source.Id;
         account.Type       = source.Type;
         foreach (var item in source.TenantMap)
         {
             account.TenantMap[item.Key] = item.Value;
         }
         account.CopyPropertiesFrom(source);
     }
 }