IKVM.Internal.CodeEmitter.Emit_instanceof C# (CSharp) Method

Emit_instanceof() private method

private Emit_instanceof ( Type type ) : void
type IKVM.Reflection.Type
return void
        internal void Emit_instanceof(Type type)
        {
            Emit(OpCodes.Isinst, type);
            Emit(OpCodes.Ldnull);
            Emit(OpCodes.Cgt_Un);
        }

Usage Example

Beispiel #1
0
		internal override void EmitInstanceOf(CodeEmitter ilgen)
		{
			if (IsRemapped)
			{
				TypeWrapper shadow = ClassLoaderWrapper.GetWrapperFromType(type);
				MethodInfo method = shadow.TypeAsBaseType.GetMethod("__<instanceof>");
				if (method != null)
				{
					ilgen.Emit(OpCodes.Call, method);
					return;
				}
			}
			ilgen.Emit_instanceof(type);
		}