* Type casting is the concept of converting one datatype to another datatype.
* C#.Net supports 2 types of type casting:
1)Implicit type casting.
2)Explicit type casting.
* Implicit type casting is under control or CLR.
* Explicit type casting is under control of programmer.
* Converting from Lower data types into Higher data types is called as Implicit type casting.
For Example:
Byte---->Long(Implicit)
* Converting from Higher data types into Lower data types is called as Explicit type casting.
For Example:
long---->int(Explicit)
* C#.Net supports 2 types of type casting:
1)Implicit type casting.
2)Explicit type casting.
* Implicit type casting is under control or CLR.
* Explicit type casting is under control of programmer.
* Converting from Lower data types into Higher data types is called as Implicit type casting.
For Example:
Byte---->Long(Implicit)
* Converting from Higher data types into Lower data types is called as Explicit type casting.
For Example:
long---->int(Explicit)
No comments:
Post a Comment