示例#1
0
        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();
示例#3
0
 public void StackClear()
 {
     ResultStack = ResultStack.Clear();
 }