public void NoBoxing() { var l1 = new List <SimpleValueOr <String> >(); var l2 = new List <SimpleValueOr <String> >(); var count = 0; for (int i = 0; i < Iterations; i++) { SimpleValueOr <String> v = _simpleValuesGenerator.GetNext(); if (v.Value.ValueType == SimpleValueType.Guid) { v = v.ToString(); } l1.Add(v); if (i % 10 == 0) { l2.Add(v); } if (l1.Count > 1_000_000) { l1.Clear(); } if (v.IsValue && v.Value.ValueType == SimpleValueType.Bool && v.Value) { count++; } } }
public void NoBoxing() { var l1 = new List <SimpleValue>(); var l2 = new List <SimpleValue>(); var count = 0; for (int i = 0; i < Iterations; i++) { var v = _simpleValuesGenerator.GetNext(); l1.Add(v); if (i % 10 == 0) { l2.Add(v); } if (l1.Count > 1_000_000) { l1.Clear(); } if (v.ValueType == SimpleValueType.Bool && v) { count++; } } }
public void NoBoxing() { var l = new List <SimpleValue>(); var count = 0; for (int i = 0; i < Iterations; i++) { var v = _simpleValuesGenerator.GetNext(); if (v.ValueType == SimpleValueType.Bool && v) { count++; } } }