TriAxis.RunSharp.CodeGen.EmitGetHelper C# (CSharp) Method

EmitGetHelper() private method

private EmitGetHelper ( Operand op, Type desiredType, Conversion conv, Type from = null ) : void
op Operand
desiredType IKVM.Reflection.Type
conv Conversion
from IKVM.Reflection.Type
return void
        internal void EmitGetHelper(Operand op, Type desiredType, Conversion conv, Type from = null)
        {
            if (conv == null)
            {
                EmitGetHelper(op, desiredType, false);
                return;
            }

            EmitGetHelper_Conversion(op, desiredType.IsByRef ? desiredType.GetElementType() : desiredType, conv, from);
            if (desiredType.IsByRef)
                EmitGetHelper_Ref(op, desiredType);
        }

Same methods

CodeGen::EmitGetHelper ( Operand op, Type desiredType, bool allowExplicitConversion ) : void

Usage Example

Ejemplo n.º 1
0
        void EmitArg(CodeGen g, int index, Operand arg)
        {
            if (_appliedSignature[index].IsByRef)
            {
                arg.EmitAddressOf(g);
                return;
            }

            g.EmitGetHelper(arg, _appliedSignature[index], _conversions[index], @from: _paramsSignature[index]);
        }
All Usage Examples Of TriAxis.RunSharp.CodeGen::EmitGetHelper