Exemplo n.º 1
0
 public void Deconstruct(out AbstractVertex fromVertex, out AbstractVertex toVertex) => (fromVertex, toVertex) = (FromVertex, ToVertex);
Exemplo n.º 2
0
 public AdjacentVertices(AbstractVertex fromVertex, AbstractVertex toVertex)
 {
     FromVertex = fromVertex != null ? fromVertex : throw new ArgumentNullException(nameof(fromVertex));
     ToVertex   = toVertex != null ? toVertex : throw new ArgumentNullException(nameof(toVertex));
 }