public string this[string name] { get { CanSave = true; string validationMessage = string.Empty; if (name == nameof(URL)) { if (!DataValidation.CheckURLValid(URL)) { validationMessage = "Invalid URL format!"; CanSave = false; } } if (string.IsNullOrEmpty(validationMessage)) { CanSave = true; } return(validationMessage); } }