Added support for auto enum casting

- counted up version number
- cleaned up register constructors that are used inernally only
This commit is contained in:
Felix Weiß
2022-06-24 11:25:26 +02:00
parent 83f17a4eae
commit e953938a65
7 changed files with 69 additions and 12 deletions

View File

@@ -30,12 +30,7 @@ namespace Examples {
//reading a value from the register collection
Console.WriteLine($"BitValue is: {registers.BitValue}");
interf.GetRegister(nameof(registers.TestBool1)).PropertyChanged += (s, e) => {
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine(interf.GetRegister(nameof(registers.TestBool1)).StringValue);
Console.ResetColor();
};
Console.WriteLine($"TestEnum is: {registers.TestEnum}");
//writing a value to the registers
Task.Factory.StartNew(async () => {