public void CreateAndProcessStructs() { for (var i = 0; i < N; i++) { var message = new MessageStruct(i); _eventInterfaceProcessor.Process(message); } }
public void Process(ref MessageStruct message) { message.IsProcessed = true; }