Catel.Fody.Weaving.Argument.ArgumentInstructionSequenceBuilder.BuildLongInstructions C# (CSharp) Method

BuildLongInstructions() private static method

private static BuildLongInstructions ( object minValue ) : IEnumerable
minValue object
return IEnumerable
        private static IEnumerable<Instruction> BuildLongInstructions(object minValue)
        {
            if ((long)minValue <= int.MaxValue)
            {
                // Note: don't use Ldc_I8 here, although it is a long
                yield return Instruction.Create(OpCodes.Ldc_I4, (int)(long)minValue);
                yield return Instruction.Create(OpCodes.Conv_I8);
            }
            else
            {
                yield return Instruction.Create(OpCodes.Ldc_I8, (long)minValue);
            }
        }
        #endregion