What's the C# version of DirectCast?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
This is the VB version:

<font face="Courier New" size=2>Dim t As TextBox = DirectCast(FormView1.FindControl("DataTextBox"), TextBox)</font>
<font face="Courier New" size=2>  t.Text = "hello"
</font>
<font face="Courier New" size=2>How do I do the same thing in C#? I dont see the DirectCast available in C#.
</font>



View the full article
 
Back
Top