All,
I have a simple C# window app under MyApp namespace it has a class Form1.
I've added another class .cs file.
Now this class I want to share with many projects, so I figured I'd change
this class.cs file from
namespace MyApp
Class MyClass
to:
namespace MyCompanyName
namespace LogicalGroup
class MyNewClassName
In the form class I try
MyCompanyName.L ogicalGroup.MyN ewClassName.thi sstaticfunction () and it
complains that MyCompanyName namespace could not be found? I tried a using
MyCompanyName and the namespaces I just created do not show up in
intellisense</> popups.
Obviously I need to do this a bit differently to get it to work, but I don't
want a separate assembly, dll or exe that will need to be installed or
copied in order to do this. What am I missing or is there a different route
I need to take?
Regards,
Erin.
I have a simple C# window app under MyApp namespace it has a class Form1.
I've added another class .cs file.
Now this class I want to share with many projects, so I figured I'd change
this class.cs file from
namespace MyApp
Class MyClass
to:
namespace MyCompanyName
namespace LogicalGroup
class MyNewClassName
In the form class I try
MyCompanyName.L ogicalGroup.MyN ewClassName.thi sstaticfunction () and it
complains that MyCompanyName namespace could not be found? I tried a using
MyCompanyName and the namespaces I just created do not show up in
intellisense</> popups.
Obviously I need to do this a bit differently to get it to work, but I don't
want a separate assembly, dll or exe that will need to be installed or
copied in order to do this. What am I missing or is there a different route
I need to take?
Regards,
Erin.
Comment