I am converting some code from C# to VB.NET, and I need to know what the equivalent is for C#'s using directive.
Update: Sorry, but so far I haven't gotten my answer. Here is a C# example:
using moOutlook = Microsoft.Office.Interop.Outlook;
using moExcel = Microsoft.Office.Interop.Excel;
namespace ReportGen
{
class Reports
Here is a link showing a syntax comparison between C# and VB.NET side by side.
http://www.harding.edu/fmccown/vbnet_csharp_comparison.html
From the link:
Or the imports statement (from site also):
You're looking for the Imports statement. Place any import statements that you need at the very top of your code file, just like the
using
directive in C#:see: Global Import/using Aliasing in .NET
"Using" with a capital U