I have a .dll
file from which I call functions in another program, however calling a single function ends up looking like this:
Example:
KeySim.KeySim.Basic.KEY_E();
I cannot modify the nesting of the classes as the program ceases to work. I was wondering if there was any other way to shorten the code calling the functions
Note:
Keysim
is the namespace, Keysim
is the main class and Basic
is a nested class
Try using Alias
with the using
keyword:
using Basic = KeySim.KeySim.Basic;
Then you should be able to call your function as:
Basic.KEY_E();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With