Very simple question: how to get a list of all operands in the C#? Example:
{ "return", "break", "if", "case", "switch", ... };
More hard question: how to get a list of ALL functions (types, methods)?
{ "string", "Math.Abs", "double.IsNaN", "int.ToString", ... };
I want to make something like IntelliSense (a very poor and dirty one) for CodeDom. So the user can extend functionality of the software by adding his code into mine as text. I supply him a function body with certain arguments which he can use, but he also should be able to use any standard function, to example, double.ToString()
or Math.PI
. He enters his code into RichTextEditor. And I want to make it easier for him to see the syntax (highlighting known operands, opening/closing brackets, function parameters).
I can already highlight words (parameters) and it looks nice, but would be cool to highlight everything. And I see it as getting list of operands/functins/types/methods, which I have not idea of how to do (I can type in all operands into arrays myself ofc).
Should this question be rephrased: how to make my own IntelliSense? :-)
P.S.: a quick lurking haven't provide me with even a single result and I actually having the problem to formulate that what I am looking for.