I came across this code:
private class Node
{
public Node(T t) => (Next, Data) = (null, t);
public Node Next { get; set; }
public T Data { get; set; }
}
Can someone explain what this means in the constructor ?
public Node(T t) => (Next, Data) = (null, t);
I am not sure what this means
(Next, Data) = (null, t);
(Next, Data) = (null, t);
part isn't specific to expression-bodied constructors - it just happens to often be used with them.