Microsoft MVP성태의 닷넷 이야기
글쓴 사람
agj (agj at kakao.com)
홈페이지
첨부 파일
 

안녕하세요.
.Net Core 3.1입니다.

System.Single::ToString()함수의 구현을 보고 싶어서,
dotnet-ildasm을 설치하고
dotnet-ildasm System.Runtime.dll 명령으로 IL코드를 출력해보았습니다.

그런데 출력된 System.Single::ToString()의 내용은 아래와 같았습니다.

.method public hidebysig virtual instance default string ToString() cil managed
{
    .custom instance void class System.Runtime.CompilerServices.NullableContextAttribute::.ctor(byte) = ( 01 00 01 00 00 ) // .....
    // Method begins at Relative Virtual Address (RVA) 0x3626
    // Code size 2 (0x2)
    .maxstack 8
    IL_0000: ldnull
    IL_0001: throw
} // End of method System.String System.Single::ToString()

호출되면 익셉션발생되게 한게 다인거 같은데, 왜 구현체는 보이지 않을까요?








[최초 등록일: ]
[최종 수정일: 8/26/2020]


비밀번호

댓글 작성자
 



2020-08-26 03시53분
C# 7.1 - 참조 어셈블리(Ref Assemblies)
; https://www.sysnet.pe.kr/2/0/11520

Reference assembly
; https://www.sysnet.pe.kr/2/0/776
정성태
2020-08-26 04시05분
[agj] 빠른 답변 감사드립니다!
[guest]

NoWriterDateCnt.TitleFile(s)