Posted By: ali_raza_shaikh | Oct 8th, 2006 @ 5:11 PM
page 1 of 1
Comments: 3 | Views: 3277
Yahoo has launched a .NET developer center to help you kick start development with the Microsoft .NET Framework and Yahoo! services.
 

ZippyV
ZippyV
Fired Up
Great to see Yahoo support .net too.

While looking at their example code I noticed this:

request = DirectCast(WebRequest.Create(address), HttpWebRequest)

What's the difference between DirectCast and Ctype? I always use Ctype, I didn't even know about DirectCast.
ZippyV wrote:
Great to see Yahoo support .net too.

While looking at their example code I noticed this:

request = DirectCast(WebRequest.Create(address), HttpWebRequest)

What's the difference between DirectCast and Ctype? I always use Ctype, I didn't even know about DirectCast.

From VS2005 documentation:

DirectCast does not use the Visual Basic run-time helper routines for conversion, so it can provide somewhat better performance than CType when converting to and from data type Object.



Nice find; Yahoo dotnet, did you see the HackDay videos?
page 1 of 1
Comments: 3 | Views: 3277
Microsoft Communities