B
BH
Is there a performance difference between importing (keyword "using") a
namespace for an entire class file and using the classes from that namespace
with the fully qualified name? Particularly when only one class from the
namespace is needed once? For example:
Option 1:
.....
using System.Text;
......
StringBuilder sb = new StringBuilder();
Option 2:
.......
System.Text.StringBuilder sb = new System.Text.StringBuilder();
Thanks
Bob
namespace for an entire class file and using the classes from that namespace
with the fully qualified name? Particularly when only one class from the
namespace is needed once? For example:
Option 1:
.....
using System.Text;
......
StringBuilder sb = new StringBuilder();
Option 2:
.......
System.Text.StringBuilder sb = new System.Text.StringBuilder();
Thanks
Bob