Lawnmover.Pattern.SetRow C# (CSharp) Méthode

SetRow() public méthode

public SetRow ( int nrow, IList values ) : void
nrow int
values IList
Résultat void
        public void SetRow(int nrow, IList<int> values)
        {
            for (int k = 0; k < width; k++)
                this.cells[nrow, k] = values[k];
        }

Same methods

Pattern::SetRow ( int nrow, string values ) : void

Usage Example

Exemple #1
0
        public void HasSolution2x2()
        {
            Pattern pattern = new Pattern(2, 2);

            pattern.SetRow(0, "1 2");
            pattern.SetRow(1, "4 3");

            Assert.IsFalse(pattern.HasSolution());
        }
All Usage Examples Of Lawnmover.Pattern::SetRow