You can not
Unfortunately. I do not know what else to say. It is simply not possible. You can enable any T , and then do a reflection somewhere and throw if it does not have a method called TryParse , but since it is not part of the interface or base class ... there is no way.
source share