public override void Emit(CodeGen g, Type from, Type to) { g.EmitConvHelper(Type.GetTypeCode(to)); }
public abstract void Emit(CodeGen g, Type from, Type to);
public override void Emit(CodeGen g, Type from, Type to) { }
public override void Emit(CodeGen g, Type from, Type to) { throw new AmbiguousMatchException(string.Format(null, Properties.Messages.ErrAmbiguousConversion, from.FullName, to.FullName)); }
public override void Emit(CodeGen g, Type from, Type to) { before.Emit(g, from, fromType); g.IL.Emit(OpCodes.Call, (MethodInfo)method.Member); after.Emit(g, toType, to); }
public override void Emit(CodeGen g, Type from, Type to) { g.IL.Emit(OpCodes.Castclass, to); }
public override void Emit(CodeGen g, Type from, Type to) { throw new InvalidCastException(string.Format(null, Properties.Messages.ErrInvalidConversion, from == null ? "<null>" : from.FullName, to.FullName)); }
public override void Emit(CodeGen g, Type from, Type to) { g.IL.Emit(OpCodes.Unbox_Any, to); }
public override void Emit(CodeGen g, Type from, Type to) { g.IL.Emit(OpCodes.Box, from); }
internal override void EmitAddressOf(CodeGen g) { op.EmitAddressOf(g); }
internal virtual void EmitAddressOf(CodeGen g) { throw new InvalidOperationException(string.Format(null, Properties.Messages.ErrOperandNotReferencible, GetType())); }
internal virtual void EmitSet(CodeGen g, Operand value, bool allowExplicitConversion) { throw new InvalidOperationException(string.Format(null, Properties.Messages.ErrOperandNotWritable, GetType())); }