두 dll을 API 변경으로 비교하는 동안 동료가 일부 클래스에 두 개의 GetType() 메서드가 있음을 확인했습니다.왜 System.Exception shadow GetType()이 발생합니까?
// this method is required so Object.GetType is not made virtual by the compiler
public new Type GetType()
{
return base.GetType();
}
내가 System.Exception
이 _Exception를 구현하는 것을 볼 수 있지만, 나는 GetType을 명시 적으로이 같으면 같은 그림자가 될 수있다 이유가 표시되지 않습니다
, 그것은 System.Exception
그림자 GetType을()가 밝혀 가상 어쨌든.
그렇다면 System.Exception shadow GetType()은 왜 발생합니까?
http://ericlippert.com/2013/05/23/the-mystery-of-the-inserted-method/ – SLaks
예 - 그 이유는 다른 StackOverflow 질문을 발견 한 게시물 때문이었습니다. – FriendlyGuy
왜 이것이 문제입니까? – IllidanS4