protected void ValidateNameNotEmpty(PluginProfileErrorCollection errors) { if (string.IsNullOrWhiteSpace(Name)) errors.Add(new PluginProfileError { FieldName = NameField, Message = "Mashup name cannot be empty or consist of whitespace characters only" }); }