[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 174
  • Last Modified:

Namespace reference into a variable - whats the syntax

I'd like to use:

'Img'

instead of:

'System.Web.UI.WebControls.Image'

what is the syntax for assinging the Img variable to be a reference to the System.Web.UI.WebControls.Image namespace?

bd
0
brooklynDev
Asked:
brooklynDev
  • 3
1 Solution
 
b1xml2Commented:
only in C#

using Img = System.Web.UI.WebControls.Image;
0
 
b1xml2Commented:
Not possible in VB.NET

'Tis but just another shortcoming of VB.NET
0
 
b1xml2Commented:
wherein in C#

Img myImage = new Img();
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now