Advice about variable type
Hey all
My goal is to create a class with a method for sending a register name and value.
In C I would use a typedef + enum to create a list of registers to be sent serially using a function.
Code:
typedef enum RegList Registers;
...
SendPacket( Registers Address, unsigned int Data)
I'd like to know what some of the strategies that are used in C# to create these register names to passed into the method. Would a public enum in the method's class be the best way? Is there another neater way I'm missing?