コード例 #1
0
        public static dynamic getProcessors()
        {
            dynamic val = null;

            switch (rnd.Next(0, nTypesOfProcessors))
            {
            case 0:
                val = new PointF((float)(Math.PI * rnd.NextDouble()), (float)(Math.PI * rnd.NextDouble()));
                break;

            case 1:
                val = new alfaProcessor(rnd.Next());
                break;

            case 2:
                val = new gammaProcessor(new PointF(
                                             (float)(Math.PI * rnd.NextDouble()),
                                             (float)(Math.PI * rnd.NextDouble())
                                             ));
                break;

            case 3:
                val = new betaProcessor(rnd.Next());
                break;

            case 4:
                val = rnd.Next();
                break;
            }
            return(val);
        }
コード例 #2
0
ファイル: pBuilder.cs プロジェクト: SpektrEG/DynamicTypes
 public static dynamic getProcessors()
 {
     dynamic val = null;
     switch(rnd.Next(0, nTypesOfProcessors))
     {
         case 0:
             val = new PointF((float)(Math.PI*rnd.NextDouble()), (float)(Math.PI*rnd.NextDouble()));
             break;
         case 1:
             val = new alfaProcessor(rnd.Next());
             break;
         case 2:
             val = new gammaProcessor(new PointF(
                         (float)(Math.PI * rnd.NextDouble()),
                         (float)(Math.PI * rnd.NextDouble())
                 ));
             break;
         case 3:
             val = new betaProcessor(rnd.Next());
             break;
         case 4:
             val = rnd.Next();
             break;
     }
     return val;
 }
コード例 #3
0
 public betaProcessor(betaProcessor key)
 {
     this.field = key.field;
 }
コード例 #4
0
 public betaProcessor(betaProcessor key)
 {
     this.field = key.field;
 }