Catel.Fody.Weaving.Argument.ArgumentInstructionSequenceBuilder.BuildLongInstructions C# (CSharp) 메소드

BuildLongInstructions() 개인적인 정적인 메소드

private static BuildLongInstructions ( object minValue ) : IEnumerable
minValue object
리턴 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