Show / Hide Table of Contents

Struct Coordinate

Uniquely identifies the location of a square in a Sudoku puzzle.

Implements
System.IEquatable<Coordinate>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: SudokuSpice
Assembly: SudokuSpice.dll
Syntax
public struct Coordinate : IEquatable<Coordinate>
Remarks

Note that this struct is langword_csharp_readonly, so can be efficiently referenced using langword_csharp_in. This may provide minor performance enhancement on some architectures.

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
public int Row { get; }
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
Type Name Description
Coordinate other
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Equals(Coordinate)

Declaration
public bool Equals(in Coordinate other)
Parameters
Type Name Description
Coordinate other
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
Type Name Description
Coordinate left
Coordinate right
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
Type Name Description
Coordinate left
Coordinate right
Returns
Type Description
System.Boolean

Implements

System.IEquatable<T>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX