호야선생 2012. 5. 29. 09:32

C# 에서 타입을 체크할대 쓰는 명령어로 IS사용한다.

if( a is b)

{...}


반대로 Java에서는 instanceof를 사용한다.

if( a instanceof b)

{...}