public RegistrazioneEmailModel(UtenteLoginVeloceViewModel model) { foreach (System.Reflection.PropertyInfo propertyInfo in model.GetType().GetProperties()) { if (this.GetType().GetProperty(propertyInfo.Name) != null) { this.GetType().GetProperty(propertyInfo.Name).SetValue(this, propertyInfo.GetValue(model)); } } }