private MethodBase GetTargetSiteInternal() {
if (_exceptionMethod!=null) {
return _exceptionMethod;
}
if (_stackTrace==null) {
return null;
}
if (_exceptionMethodString!=null) {
_exceptionMethod = GetExceptionMethodFromString();
} else {
RuntimeMethodHandle method = InternalGetMethod(_stackTrace).GetTypicalMethodDefinition();
_exceptionMethod = RuntimeType.GetMethodBase(method);
}
return _exceptionMethod;
}