コード例 #1
0
ファイル: GridState.cs プロジェクト: michalfi/advent2016
 public GridState(Node[,] nodes, Position dataLocation, ClusterSetup cluster)
 {
     Debug.Assert(nodes.GetLength(0) == cluster.XDim && nodes.GetLength(1) == cluster.YDim);
     Nodes        = nodes;
     DataLocation = dataLocation;
     Cluster      = cluster;
 }
コード例 #2
0
ファイル: ClusterSetup.cs プロジェクト: michalfi/advent2016
 protected bool Equals(ClusterSetup other)
 {
     return(XDim == other.XDim && YDim == other.YDim && Equals(AccessNode, other.AccessNode));
 }