Does anyone have a complete list of conversion operators for VB / C # and how do they differ?
I still know ...
- value as type [C #]
- TryCast (value, type) [VB]
- Convert.ToXxx (value) [any]
- (type) value [C #]
- CType (value, type) [VB]
- DirectCast (value, type) [VB]
- CXxx (value) [VB]
- CTypeDynamic [any]
- implicit conversions when using the Strict Off [VB] parameter
- implicit conversions when using dynamic [C #]
- value of type [F #]
- :> [F #]
- :? > [F #]
But, of course, just having a list is not the same as knowing the subtle differences between them.
source
share