adspace
Answer Posted / Minakshi Rani
Direct cast in C# is used to convert one type of object into another specific type. The syntax for this is (target-type)object. For example: int x = (int)myObject; CType in VB.NET is similar to direct cast but can perform implicit conversions if the compiler decides it's safe.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers