public int DoSomething<T>(string someString)
I want to insist that I can call TryParse on T. Is it possible to restrict T in that way? TryParse is not part of an interface, it just seems to exist on a number of value types, so how would I do this?