AcManager.Controls.Dialogs.Prompt.ViewModel.GetErrors C# (CSharp) Méthode

GetErrors() public méthode

public GetErrors ( string propertyName ) : IEnumerable
propertyName string
Résultat IEnumerable
            public IEnumerable GetErrors(string propertyName) {
                switch (propertyName) {
                    case nameof(Text):
                        return Required && string.IsNullOrWhiteSpace(Text) ? new[] { "Required value" } : null;
                    default:
                        return null;
                }
            }