예제 #1
0
        public void Run()
        {
            switch (size)
            {
            case 16:
                c16 = new C16[Constants.ArraySize];
                for (int i = 0; i < Constants.ArraySize; i++)
                {
                    c16[i] = new C16();
                }
                break;

            case 32:
                c32 = new C32[Constants.ArraySize];
                for (int i = 0; i < Constants.ArraySize; i++)
                {
                    c32[i] = new C32();
                }
                break;

            case 64:
                c64 = new C64[Constants.ArraySize];
                for (int i = 0; i < Constants.ArraySize; i++)
                {
                    c64[i] = new C64();
                }
                break;

            case 128:
                c128 = new C128[Constants.ArraySize];
                for (int i = 0; i < Constants.ArraySize; i++)
                {
                    c128[i] = new C128();
                }
                break;

            case 256:
                c256 = new C256[Constants.ArraySize];
                for (int i = 0; i < Constants.ArraySize; i++)
                {
                    c256[i] = new C256();
                }
                break;

            case 512:
                c512 = new C512[Constants.ArraySize];
                for (int i = 0; i < Constants.ArraySize; i++)
                {
                    c512[i] = new C512();
                }
                break;

            default:
                throw new ArgumentException();
            }
        }
 public MethodCallWithClassArgumentTask(int size)
 {
     this.size = size;
     c16       = new C16();
     c32       = new C32();
     c64       = new C64();
     c128      = new C128();
     c256      = new C256();
     c512      = new C512();
 }
 void PC128(C128 o)
 {
 }