I really wanted to just use
Class MyClasses
{
public string mwaAHA = "here";
//and then use it like this:
static void testStringhere()
{
console.writeline(mwaAHA);
}
}
I’m doing something wrong can someone demo the eaist way I can make a few strings and use them in any void?
Since your
testStringhere()is static, it only has access to other static members residing in the same scope.To solve your issue in this case use