ProfanityDetector
ProfanityDetector copied to clipboard
None of the XML comments show in intellisense
When installing ProfanityDetector
nuget package, the XML comments don't show in intelisense
But I see in your sourcecode there's plenty of useful information:
/// <summary>
/// Check whether a specific word is in the profanity list. IsProfanity will first
/// check if the word exists on the whitelist. If it is on the whitelist, then false
/// will be returned.
/// </summary>
/// <param name="word">The word to check in the profanity list.</param>
/// <returns>True if the word is considered a profanity, False otherwise.</returns>
public bool IsProfanity(string word)
{
if (string.IsNullOrEmpty(word))
{
return false;
}
// Check if the word is in the whitelist.
if (WhiteList.Contains(word.ToLower(CultureInfo.InvariantCulture)))
{
return false;
}
return _profanities.Contains(word.ToLower(CultureInfo.InvariantCulture));
}
Using VS2019 Professional
I will take a look. Thanks