Top "Directcast" questions

DirectCast is a keyword in VB.

Difference between DirectCast() and CType() in VB.NET

I am an experienced C/C++/C# programmer who has just gotten into VB.NET. I generally use CType (and …

vb.net ctype directcast
C#'s equivalent to VB.NET's DirectCast

Does C# have an equivalent to VB.NET's DirectCast? I am aware that it has () casts and the 'as' keyword, …

c# vb.net casting directcast ctype
Casting DataTypes with DirectCast, CType, TryCast

Ever since I moved from VB6 to VB.NET somewhere in 2005, I've been using CType to do casting from one …

vb.net casting directcast ctype
Why does directcast of a string to an object result in 'object reference not set to an instance of an object'?

I am trying to cast a string into an object (which is a parameter of a procedure). I also tried …

vb.net directcast
Directcast & Ctype differences with enums

Public Enum Fruit Red_Apple = 1 Oranges Ripe_Banana End Enum Private Sub InitCombosRegular() Dim d1 As New Dictionary(Of Int16, …

vb.net directcast ctype
How to display confirmation message with GridView ShowDeleteButton CommandField

I'm trying to attach a Javascript function to confirm a delete of a record in a GridView. I know this …

asp.net gridview controls linkbutton directcast