.Using List

Declaring List<byte> LogEvents = new List<byte>(); //or for a class: List<LogEventClass> LogEvents = new List<LogEventClass>(); Adding Objects LogEventClass LogEvent1 = new LogEventClass(); LogEvents.Add(LogEvent1); Add Array LogEvents.AddRange(System.Text.Encoding.UTF8.GetBytes(NameText)); Removing Objects Find the object index then LogEvents.RemoveAt(Index); There is also RemoveRange or just Remove where you specify an exact match for it to find and remove. Total Number […]

Read More