If the type is unknown, try using Object^. Provided you're working with CLI types, they're all derived from Object.
rubberman commented: Good point - haven't had to deal with this cruft in 20 years! :-) +11
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
cereal commented: agree :) +0
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
Ketsuekiame commented: Unfortunately straight line compound is becoming more popular in the junior devs we get here :( +8
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
tux4life commented: From all suggested approaches I like these the most. +13
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster