What will the output of value?

Dim value As Decimal = DirectCast(987.67, Decimal)

 Posted by vishalneeraj-24503 on 1/14/2014 | Category: VB.NET Interview questions | Views: 2258 | Points: 40

It will throw a compile-time error saying that

Value of type 'Double' cannot be converted to 'Decimal'.

DirectCast is used for type-cast conversion in VB.Net.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response