dotnet-Snippets.com
Snippets: 73 | Registered User: 84 | Visitors online: 0
Main Menu

Home
Random Snippet
FAQs
Contact Us
Imprint
RSS Feeds

Rss All languages
Rss C#
Rss VB.NET
Rss C++
Rss J#
Rss ASP.NET
Jobs

dotnet Jobs
Google Ads

Sri Lanka .NET 
                Forum Member
Determines whether the character is printable

Author: Jan Welker
Programming Language: C# Rating:
not yet rated

Views: 5031

Description:

Determines whether the character is printable



C#
1
2
3
4
5
6
7
8
9
10
11
/// <summary>
/// Determines whether [is printable character] [the specified candidate].
/// </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);
}

This Snippets could be interesting for you:
No results available

Poor Excellent
1 2 3 4 5 6 7 8 9 10
Sign in to vote for this snippet.

Comments:
(Please log in to write an comment.)