Struct Coordinate
Uniquely identifies the location of a square in a Sudoku puzzle.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: SudokuSpice.dll
Syntax
public struct Coordinate : IEquatable<Coordinate>
Constructors
|
Improve this Doc
View Source
Coordinate(Int32, Int32)
Declaration
public Coordinate(int row, int col)
Parameters
Type |
Name |
Description |
System.Int32 |
row |
|
System.Int32 |
col |
|
Properties
|
Improve this Doc
View Source
Column
The zero-based column in the puzzle, starting on the left.
Declaration
public int Column { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Row
The zero-based row in the puzzle, starting at the top.
Declaration
Property Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
Deconstruct(out Int32, out Int32)
Declaration
public void Deconstruct(out int row, out int col)
Parameters
Type |
Name |
Description |
System.Int32 |
row |
|
System.Int32 |
col |
|
|
Improve this Doc
View Source
Equals(Coordinate)
Declaration
public bool Equals(Coordinate other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Equals(Coordinate)
Declaration
public bool Equals(in Coordinate other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Operators
|
Improve this Doc
View Source
Equality(Coordinate, Coordinate)
Declaration
public static bool operator ==(in Coordinate left, in Coordinate right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Inequality(Coordinate, Coordinate)
Declaration
public static bool operator !=(in Coordinate left, in Coordinate right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<T>