Die Funktion ermittelt ob der übergebene Character ein druckbares Zeichen aus der ASCII Tabelle ist.
/// <summary>
/// Determines whether the character is printable
/// </summary>
/// <param name="candidate">The candidate.</param>
/// <returns>
/// <c>true</c> if [is printable character] [the specified candidate]; otherwise, <c>false</c>.
/// </returns>
private bool IsPrintableCharacter(char candidate)
{
return !(candidate < 0x20 || candidate > 127);
}
2 Kommentare zum Snippet