Assign value to a char type : char « Data Type « C# / CSharp Tutorial

C# / CSharp Tutorial
1. Language Basics
2. Data Type
3. Operator
4. Statement
5. String
6. struct
7. Class
8. Operator Overload
9. delegate
10. Attribute
11. Data Structure
12. Assembly
13. Date Time
14. Development
15. File Directory Stream
16. Preprocessing Directives
17. Regular Expression
18. Generic
19. Reflection
20. Thread
21. I18N Internationalization
22. GUI Windows Forms
23. 2D
24. Design Patterns
25. Windows
26. XML
27. ADO.Net
28. Network
29. Directory Services
30. Security
31. unsafe
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
C# / C Sharp
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
C# / CSharp Tutorial » Data Type » char 
2. 17. 1. Assign value to a char type
  1. C# uses a 16-bit character type called Unicode.
  2. Unicode defines a character set that is large enough to represent all of the characters found in all human languages.
  3. There are no automatic type conversions from integer to char.

Char supplies methods that allow you to process and categorize characters.

Char defines the following fields:

  1. public const char MaxValue
  2. public const char MinValue

These represent the largest and smallest values that a char variable can hold.

Char implements the following interfaces: IComparable and IConvertible.

using System;

class MainClass
{
  static void Main(string[] args)
  {
    char MyChar = 'A';
        Console.WriteLine(MyChar);
  }
}
A
2. 17. char
2. 17. 1. Assign value to a char type
2. 17. 2. Methods Defined by Char
2. 17. 3. Character Escape Sequences
2. 17. 4. Char: IsDigit
2. 17. 5. Char: IsLetter
2. 17. 6. Char: IsLower/IsUpper
2. 17. 7. Char: IsSymbol
2. 17. 8. Char: IsSeparator
2. 17. 9. Char: IsWhiteSpace
2. 17. 10. Char: IsPunctuation
2. 17. 11. Convert character to upper case
2. 17. 12. Use a char to control the switch.
2. 17. 13. Get characters in a string
ww___w_.jav___a___2_s___.__c_o__m_ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.