you don't need to use 'ref' with reference types
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
{
|
||||
List<Token> equation = new();
|
||||
|
||||
public string ToReverseNotation(ref List<Token> equation)
|
||||
public string ToReverseNotation(List<Token> equation)
|
||||
{
|
||||
List<Token> TEMP = new List<Token>();
|
||||
Stack<Token> OPERATORS = new Stack<Token>();
|
||||
@@ -47,9 +47,9 @@
|
||||
}
|
||||
|
||||
|
||||
public string Solve(ref List<Token> equation)
|
||||
public string Solve(List<Token> equation)
|
||||
{
|
||||
ToReverseNotation(ref equation);
|
||||
ToReverseNotation(equation);
|
||||
Stack<Token> stack = new Stack<Token>();
|
||||
foreach (Token token in this.equation)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user