Пример #1
0
 internal BenchmarkNodeWithoutIn(BenchmarkNodeWithoutIn node, NodeOperation op)
 {
     Index     = node.Index;
     HasMine   = node.HasMine;
     MineCount = node.MineCount;
     State     = _operationToStateMap[op];
 }
Пример #2
0
 public void WithoutIn()
 {
     var node = new BenchmarkNodeWithoutIn();
     Span <BenchmarkNodeWithoutIn> nodes = stackalloc BenchmarkNodeWithoutIn[]
     {
         new BenchmarkNodeWithoutIn(node, NodeOperation.Flag),
         new BenchmarkNodeWithoutIn(node, NodeOperation.Flag),
         new BenchmarkNodeWithoutIn(node, NodeOperation.Flag),
         new BenchmarkNodeWithoutIn(node, NodeOperation.Flag),
         new BenchmarkNodeWithoutIn(node, NodeOperation.Flag),
         new BenchmarkNodeWithoutIn(node, NodeOperation.Flag),
         new BenchmarkNodeWithoutIn(node, NodeOperation.Flag),
         new BenchmarkNodeWithoutIn(node, NodeOperation.Flag),
         new BenchmarkNodeWithoutIn(node, NodeOperation.Flag),
         new BenchmarkNodeWithoutIn(node, NodeOperation.Flag)
     };
 }