• Saves Valuable Time
  • Trusted Accuracy for 12 Years
  • 15-Day Money-Back Guarantee

VB Equivalent to C# 'using' Directive

C# VB.NET
using Foo;
using static Foo.Bar;   //'Bar' is a type

//namespace alias:
using foo = SomeNamespace;
//type alias:
using bar = SomeNamespace.SomeType;
Imports Foo
Imports Foo.Bar   ''Bar' is a type

'namespace alias:
Imports foo = SomeNamespace
'type alias:
Imports bar = SomeNamespace.SomeType


Use Instant VB to convert from C# to VB.NET.     

Additional resource: VB.NET and C# Equivalents


Copyright © 1997 – 2017 Tangible Software Solutions Inc.