Пример #1
0
 public void Setup()
 {
     _assembly  = typeof(ReflectionCacheBenchmark).Assembly;
     _types     = _assembly.GetTypes().ToArray();
     _assistant = new ReflectionCache()
                  .AddTypes(_assembly)
                  .Prepare()
     ;
     _assistantBitArray = new ReflectionCacheUsingBitArray()
                          .AddTypes(_assembly)
                          .Prepare()
     ;
 }