Boxing(암시적)

Value 형식 -> Object 형식,
Value 형식 -> 인터페이스 형식
Unboxing(명시적)

Object 형식 -> Value 형식,
인터페이스 형식 - > Value 형식
많은 계산 과정이 필요하기 때문에 boxing과 unboxing은 되도록 안쓰는게 좋음.
List와 ArrayList의 차이에서 Boxing, UnBoxing 이슈가 있음.
참조 : https://docs.microsoft.com/ko-kr/dotnet/csharp/programming-guide/types/boxing-and-unboxing

Value 형식 -> Object 형식,
Value 형식 -> 인터페이스 형식
Unboxing(명시적)

Object 형식 -> Value 형식,
인터페이스 형식 - > Value 형식
List와 ArrayList의 차이에서 Boxing, UnBoxing 이슈가 있음.
참조 : https://docs.microsoft.com/ko-kr/dotnet/csharp/programming-guide/types/boxing-and-unboxing
댓글
댓글 쓰기