public V Copy <V>(VertexNodeStateContext nodeStateContext, VertexNodeStateContextFactory <V> factory) where V : VertexNodeStateContext, new() { var nodeFactory = VertexNodeFactory.GetFactory(); var context = factory.ConstructNodeContext(nodePosition: nodeStateContext.Node.Position, nodeState: nodeStateContext.State, nodeFactory: nodeFactory); return(context); }
public static VertexNodeStateContext Copy(VertexNodeStateContext nodeStateContext, VertexNodeStateContextFactory <VertexNodeStateContext> factory) { var nodeFactory = VertexNodeFactory.GetFactory(); var context = factory.ConstructNodeContext(nodePosition: nodeStateContext.Node.Position, nodeState: nodeStateContext.State, nodeFactory: nodeFactory); return(context); }