public void PersistElement(LWW_RegisterElement <TestType> element) { var elements = Elements.Where(e => e.Value.Id != element.Value.Id).ToList(); elements.Add(element); Elements = elements; }
public void PersistElement(LWW_RegisterElement <TestType> element) { var entity = Elements.FirstOrDefault(a => a.Value.Id == element.Value.Id); if (entity is not null) { Elements.Remove(entity); } Elements.Add(element); }
public LWW_Register(LWW_RegisterElement <T> element) : base(element) { }
protected LWW_RegisterBase(LWW_RegisterElement <T> element) { Element = element; }