There is one question called "Getting nth property of a class" here where the answers doesn't work for static class.
Here is my static class:
namespace MyNameSpace
{
static class MyStaticClass
{
public static byte[] BASIC_IFO = { 0xCC, 0x55, 0xD1, 0x00, 0x00, 0x00 };
public static byte[] DEFINITION = { 0xCC, 0x55, 0xD2, 0x00, 0x00, 0x00 };
public static byte[] GET_PARAMETERS = { 0xFF, 0x55, 0xD3, 0x00, 0x00, 0x00 };
}
}
How can I access the nth property's value(in this case a byte array) of this static class from the main class? The question above didn't solve my problem.
Aucun commentaire:
Enregistrer un commentaire