Click here to Skip to main content
15,885,952 members
Articles / Programming Languages / Visual Basic

Changing Type

Rate me:
Please Sign up or sign in to vote.
4.00/5 (1 vote)
15 Feb 2010CPOL 7.4K   5  
Sometimes you need to change objects type to another type.Convert.ChangeType does this job for you. But when you use Nullable(Of T), this function throws an exception.You can use the following function to change type(including Nullable types) safely... Private Function CType2(ByVal...
No downloads associated with this content

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Adasoft
Turkey Turkey
I'm a software developer at Adasoft.
My specialists is on Web and Silverlight.

Especially i like wroting javascript codes(It is much harder,but gets more satisfaction Smile | :) )

You can reach my tips at my homepage(Turkish only)

Comments and Discussions