Results 1 to 4 of 4

Thread: Imports question

  1. #1

    Thread Starter
    Frenzied Member Fishcake's Avatar
    Join Date
    Feb 2001
    Location
    Derby, UK
    Posts
    1,092

    Imports question

    Are there any performance issues related to importing a namespace or not

    ie. using
    VB Code:
    1. Imports System.Data.SqlClient
    2. ...
    3. Dim cmdSelect As SqlCommand
    or
    VB Code:
    1. Dim cmdSelect As SqlClient.sqlCommand

    Not urgent it's just that i was curious,

    Thanks.

  2. #2
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    Nope, either way the assembly has to be loaded and using the imports directive just allows you reference a class without using the fully qualified name.

  3. #3
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    It all looks the same when compiled.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  4. #4

    Thread Starter
    Frenzied Member Fishcake's Avatar
    Join Date
    Feb 2001
    Location
    Derby, UK
    Posts
    1,092
    That was what i figured, cheers for your answers.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width