T
TomC
For starters - apologies for a bit of cross-posting. I posted this in
another forum, but hours later I noticed that that forum doesn't
appear to get much traffic. Then I remembered this one, so I figured
I'd try again here
I'm coming from a Java background and teaching myself C#. I figured
out how to create libraries in C# and use them in my other projects.
Now I'd like to figure out if I can reuse a class in a different way.
Let's say that I create an instantiable class Foo in namespace
Foobar. Foobar creates an executable, not a library. At some later
time, I'm working on some other project, in some other namespace and
it occurs to me that my old Foo class would work perfectly to solve a
problem, but I foolishly didn't put it in a library when I first
created it.
Obviously, I could recreate Foo in a library, and reference that
library in my new project. But can I reference it in its existing
class without having to make a library?
I tried doing this sort of thing the same way I referenced the class
library .dll, but it didn't seem to work. But I don't know if that
means it can't be done, or if I'm just doing it the wrong way.
Thanks for any help!
another forum, but hours later I noticed that that forum doesn't
appear to get much traffic. Then I remembered this one, so I figured
I'd try again here
I'm coming from a Java background and teaching myself C#. I figured
out how to create libraries in C# and use them in my other projects.
Now I'd like to figure out if I can reuse a class in a different way.
Let's say that I create an instantiable class Foo in namespace
Foobar. Foobar creates an executable, not a library. At some later
time, I'm working on some other project, in some other namespace and
it occurs to me that my old Foo class would work perfectly to solve a
problem, but I foolishly didn't put it in a library when I first
created it.
Obviously, I could recreate Foo in a library, and reference that
library in my new project. But can I reference it in its existing
class without having to make a library?
I tried doing this sort of thing the same way I referenced the class
library .dll, but it didn't seem to work. But I don't know if that
means it can't be done, or if I'm just doing it the wrong way.
Thanks for any help!