public ImmutableStack <T> ImmutableStack() { ImmutableStack <T> immutableStack = ImmutableStack <T> .Empty; foreach (T value in _uniqueValues) { immutableStack = immutableStack.Push(value); } return(immutableStack.Clear()); }
protected override ImmutableStack <T> Clear(ImmutableStack <T> values, ISerializationContext context) => values.Clear();
public void StackClear() { ResultStack = ResultStack.Clear(); }