Original Post
Is it possible (in C#) to convert a string into all or part of a method or variable type? I want to avoid having a Collection of string keys matched to delegate values. Instead of (Key, Value) for ("Move", OnMoveEvent) I want to just build a delegate based on a string parameter ala: OnEvent where the final string actually matches a predefined method (OnMoveEvent() already exists). Along these same lines is it possible to convert strings to reference types of any other kind, such as a class? I am aware of stuff like atoi() but what is the way to essentially get atoEnum() or atoClass()? Thank in advance for any replies.