kn0pee
-
Posts
1 -
Joined
-
Last visited
By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Runtime Offsets with type
in FSUIPC Client DLL for .NET
Posted · Edited by kn0pee
Hi All.
I'm developing a program in C#, which involves dynamic offsets (The user creates settings in the program which are saved to a file).
The data the user inputs is
Currently the program creates the offset, using the address and length. This works great and when manually specifying the type I can successfully get the value from the flight sim.
However I am not sure how I can go about using my type variable when getting the information
I get the error Type is a variable but used as a type. I have also tried typeof(MyTypeHere), and several other methods however I haven't been able to fix it.
I am quite new to C# so apologies if this is a really stupid question.
EDIT: I know I can use a switch(MyTypeHere) and then have a case for every single type, however I am trying to avoid this if possible.
Thanks,
Brad