[Mono.Debugger.Soft] Fix bug 22194 - cannot use typeof with type parameters.

If the current method is generic or the declaring type of the method is generic look to see if the name matches one of the type arguments.