this may not prove interesting to about 99% of you but I did find a way to manipulate menu items in C#

Basically anything that you have access to in the Script Editor can be accessible in C#, C++, Visual Basic, etc. All you have to do is add a reference to the ScriptManagerWrappers.dll file to your project
Once you've done that you can pass ANY of those items to your application and perform work on them
This is great because now one can hide all their code in a .dll file so no one with prying eyes can look it over to see how you did something

Code protection, it's a great thing