C# Class SourceGrid.Position

显示文件 Open project: zhuangyy/Motion Class Usage Examples

Public Properties

Property Type Description
Empty Position

Public Methods

Method Description
Equals ( Position p_Position ) : bool

Equals ( object obj ) : bool

GetHashCode ( ) : int

GetHashCode

IsEmpty ( ) : bool

Returns true if the current struct is empty

Max ( Position p_Position1, Position p_Position2 ) : Position

Returns a position with the bigger Row and the bigger column

Min ( Position p_Position1, Position p_Position2 ) : Position

Returns a position with the smaller Row and the smaller column

Position ( int row, int col ) : System

Constructor

ToString ( ) : string

operator ( ) : bool

Private Methods

Method Description
Position ( ) : System

Method Details

Equals() public method

public Equals ( Position p_Position ) : bool
p_Position Position
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

GetHashCode
public GetHashCode ( ) : int
return int

IsEmpty() public method

Returns true if the current struct is empty
public IsEmpty ( ) : bool
return bool

Max() public static method

Returns a position with the bigger Row and the bigger column
public static Max ( Position p_Position1, Position p_Position2 ) : Position
p_Position1 Position
p_Position2 Position
return Position

Min() public static method

Returns a position with the smaller Row and the smaller column
public static Min ( Position p_Position1, Position p_Position2 ) : Position
p_Position1 Position
p_Position2 Position
return Position

Position() public method

Constructor
public Position ( int row, int col ) : System
row int
col int
return System

ToString() public method

public ToString ( ) : string
return string

operator() public static method

public static operator ( ) : bool
return bool

Property Details

Empty public_oe static_oe property

Empty position
public static Position,SourceGrid Empty
return Position