CharExtensionsIsConsonant Method
This function determines whether a character is considered a consonant.
In the English language, the basic set of vowels consists of the letters
'b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x' and 'z'.
However, there are additional characters and diacritics that represent consonants
in various languages and writing systems.
This function takes into account a wide range of such characters.
Namespace: DevCase.Extensions.CharExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static bool IsConsonant(
this char c
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function IsConsonant (
c As Char
) As Boolean
Dim c As Char
Dim returnValue As Boolean
returnValue = c.IsConsonant()
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static bool IsConsonant(
wchar_t c
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member IsConsonant :
c : char -> bool
No code example is currently available or this language may not be supported.
- c Char
-
The character to check.
Boolean
True if the character is a consonant; otherwise, False.
In Visual Basic and C#, you can call this method as an instance method on any object of type
Char. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
The determination of what constitutes a consonant can vary depending on the language or linguistic context.
This function aims to cover a broad range of characters commonly regarded as consonants
in various languages and writing systems.
However, it may not account for all possible cases and specific linguistic requirements.
Therefore, it is recommended to use this function as a general-purpose tool
and adjust it according to specific needs if necessary.