what is the difference between this types: char and System.Char 
Author Message
 what is the difference between this types: char and System.Char

Hi !

what is the difference between this types: char and System.Char

thanks !



Sat, 14 May 2005 00:00:02 GMT  
 what is the difference between this types: char and System.Char
Vitalie,

    There is none.  char is simply an alias for System.Char.  The two are
completely interchangable.

    Hope this helps.

--
               - Nicholas Paldino [.NET/C# MVP]


Quote:
> Hi !

> what is the difference between this types: char and System.Char

> thanks !



Sat, 14 May 2005 00:04:03 GMT  
 what is the difference between this types: char and System.Char
Vitalie, char is a simple data type whereas System.Char is a structure which
represents a unicode character.  The System.Char structure also exposes some
helpful functions for comparing and checking the value of the contained char
whereas the char type does not have these.

--
Greg Ewing [MVP]
http://www.claritycon.com/


Quote:
> Hi !

> what is the difference between this types: char and System.Char

> thanks !



Sat, 14 May 2005 00:13:28 GMT  
 what is the difference between this types: char and System.Char
Nothing, char is just an alias for System.Char.  All primitive types in C#
map to framework types.


Quote:
> Hi !

> what is the difference between this types: char and System.Char

> thanks !



Sat, 14 May 2005 00:12:54 GMT  
 what is the difference between this types: char and System.Char
Vitalie, correction on the last lines of my post, as Nicholas and Peter
poitned out, char is just a mapping to System.Char, they both have the same
static and instance methods exposed.

--
Greg Ewing [MVP]
http://www.claritycon.com/



Quote:
> Vitalie, char is a simple data type whereas System.Char is a structure
> which represents a unicode character.  The System.Char structure also
> exposes some helpful functions for comparing and checking the value of the
> contained char whereas the char type does not have these.

> --
> Greg Ewing [MVP]
> http://www.claritycon.com/



> > Hi !

> > what is the difference between this types: char and System.Char

> > thanks !



Sat, 14 May 2005 00:19:46 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. What's the difference between char [][20] and char (*)[20]

2. what's the difference between char * and const char *

3. Difference between char and unsigned char

4. difference in space reserved between a char use[] and char *use

5. Help explain char * and char [] differences

6. The differences between char * & char []

7. Differences between char array[SIZE] and char *array

8. what's differences between char [] and char* ?

9. Simpleton: Can someone tell me the difference between char* and char x[255]

10. Difference between char* and char[]

11. NewBie: difference between char* and unsigned char*

12. (Multiple) converting type list char/CString/char[]

 

 
Powered by phpBB® Forum Software