How to implement storing objects that describe some action in the collection?

Such as adding or removing array elements.
March 23rd 20 at 19:33
2 answers
March 23rd 20 at 19:35
Solution
Logging of actions performed on a collection? Keep in NoSQL some, such as Mongo or ClickHouse.
You need to solve without a DB. Must be stored in a collection of objects that describe some action, such as adding to the array element. - chase commented on March 23rd 20 at 19:38
And better not in the collection, and in the stack. - chase commented on March 23rd 20 at 19:41
@chase, and the ID of the element in the collection what?

Well, then implement a linked list.

Want a stack? Then translate the ID into a byte[] + add byte as the ID of the action (added, removed). - Wayne.Steuber99 commented on March 23rd 20 at 19:44
@Wayne.Steuber99, thank you. So help - chase commented on March 23rd 20 at 19:47
March 23rd 20 at 19:37
Read about event sourcing

Find more questions by tags C#.NET