Using `using`, am I understanding this right?
How does
using
differ between these two use-cases (haha, puns).
and
6 Replies
same keyword, but used entirely differently
the top one is just "importing" a namespace, so you can use types from them without fully qualifying that namespace
the bottom one has to do with disposables
Ah ok I think I understand. So despite the same keyword usage, the importing namespace portion does not handle disposal at all? I think that is where I became confused is reading about the disposal for the second use-case and not understanding how it applied to the first.
These are two completely unrelated concepts
You can literally just pretend it says
handledispose (var context = new Database_Load())
yeah think of it as two different keywords
Or
import System;
Ah ok, thank you that clears it up much more. I appreciate your time and help in understanding this better!