C# __arglist 关键字

using System.Runtime.InteropServices;

namespace Alpha
{
    class Beta
    {
        [DllImport("msvcrt.dll")]
        static extern int scanf(string format, __arglist);
        [DllImport("msvcrt.dll")]
        static extern int printf(string format, __arglist);
        static void Main()
        {
            int a = 0;
            int b = 0;
            unsafe
            {
                scanf("%d%d", __arglist(&a, &b));
            }
            printf("%d + %d = %d
", __arglist(a, b, a + b));
        }
    }
}
原文地址:https://www.cnblogs.com/JebediahKerman/p/CSharpArglistKeyword.html