Hi. I've declared a class in my file and I want to use it within another class. So far i have this:
Code:
public class song
{
static public string track;
static void Note(string note, string durr)
{
track += note+"*"+durr+"|";
}
static void Play()
{
if (track.Length > 0)
{
// Some stuff
}
}
}
and I'm trying to use it like this:
Code:
myTune;
myTune = new MyNamespace.song();
I get the error that 'myTune' doesn't exist in the current context.
What am I doing wrong?
