Quick Tip when using Invoke

Instead of using a string for your first parameter and risking making a typo of some sort you can use Invoke(nameof(METHOD_NAME), TIME). The advantage is that in the nameof() brackets you dont type a string and you “call” the actual method making your code editor of choice able to autocomplete the name without any typos.
Should look something like this
image

Happy coding ^^

10 Likes

Very useful. Thank you!

Came here to see if somebody had already gave the tip

Good job!

Privacy & Terms