"" <> wrote in message
news

9ED9DD0-1525-4C7B-BA3C-...
> Ok, this is going to sound very trivial...
>
> I have several methods that I want to put into a seperate class file and
> call back to or reference from a couple different files.
>
> I create the class file (class_utilites.cs) and am able to reference it's
> main class object, but am unable to get to any of the included methods.
>
Example:
namespace MyNamespace {
public class MyClass {
public string GetName()
{
return "My Name";
}
}
}
namespace MyNamespace {
public class MyClass2 {
public void DoSomething()
{
MyClass cls = new MyClass();
string name = cls.GetName();
// Do other stuff here.
}
}
}
HTH,
Mythran