Something about using

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I wonder how would the CSharp avoid repeative include Assembly repeatively,
because we coud using same Assembly in on just one Assembly twice or more.
 
I wonder how would the CSharp avoid repeative include Assembly repeatively,
because we coud using same Assembly in on just one Assembly twice or more.

Not sure I understand the question. But if you're worrying about using
the using statement to import the same namespace in different files in
the same project, you have nothing to worry about. It doesn't cause
multiple references or runtime instances of an assembly or anything
like that (in fact, using has nothing to do with references).


Mattias
 
You could always put all of your classes in one file!
//In fact,i nearly no put any classes into the same file:)
 
//In fact,i nearly no put any classes into the same file:)

Neither do I. But then, I have no problem with putting using statements into
my code files!

--
HTH,

Kevin Spencer
Microsoft MVP
Ministry of Software Development
http://unclechutney.blogspot.com

Never trust a dunderhead with a blunderbuss.
 
Mattias Sjögren said:
Not sure I understand the question. But if you're worrying about using
the using statement to import the same namespace in different files in
the same project, you have nothing to worry about. It doesn't cause
multiple references or runtime instances of an assembly or anything
like that (in fact, using has nothing to do with references).


Mattias

Thanks a lot
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top