I am implementing a syntax highlighter using C# windows forms, and would like to get a list of all names, I know that this should be done manually, adding keywords and names but i was wondering if there is a function in C# that could help me do this.
Use reflection.
Assembly.GetAssembly(typeof(MyClass)).GetTypes()
You will have to use the reflection to get the names of classes in a dll.
// Using Reflection to get information from an Assembly:
System.Reflection.Assembly o = System.Reflection.Assembly.Load("mscorlib.dll");
var types = o.GetTypes();
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