sir, i saw ur blog, it is good for begginers in c# to track errors . i have one simple dubt
int i =convert.int32(null); not showing error char ch=convert.Tochar(null); showing error char ch= convert.TOchar(convert.int32(null)); not showing error
char ch= convert.ToChar(convert.ToInt32(null)); ---> char ch=convert.ToChar(0);--> char ch= '\0'; u write console.write(ch); u get space in console window..
For char ch=Convert.Tochar(null); ---> Convert.Tochar() expect some ascii value as argument for converting to char.
U are passing null value instead of ascii value. thats why u getting error..
Comments
hw r u?
i saw ur blog, it is good for begginers in c# to track errors .
i have one simple dubt
int i =convert.int32(null);
not showing error
char ch=convert.Tochar(null);
showing error
char ch= convert.TOchar(convert.int32(null));
not showing error
ascii value for null is zero
char ch= convert.ToChar(convert.ToInt32(null));
--->
char ch=convert.ToChar(0);-->
char ch= '\0';
u write console.write(ch);
u get space in console window..
For char ch=Convert.Tochar(null);
--->
Convert.Tochar() expect some ascii value as argument for converting to char.
U are passing null value instead of ascii value. thats why u getting error..
If any errors in my explanation let me know...