I tried to access in my Test.cs to strings in my other class TerminalStrings.cs but was not able.... how can I access to them ?
TerminalStrings.cs :
namespace RFID_App
{
class TerminalStrings
{
public static readonly string identiError = "ERROR";
public const string identiSuccess = "SUCCESS";
}
}
In Test.cs:
namespace RFID_App
{
class Test
{
public Test()
{
string test;
TerminalStrings stringlist = new TerminalStrings();
test = stringlist.identiError; //this was not possible
}
}
}