C# Class Csharp6.Csharp6.Point

immutable なクラス/構造体を作るのに大変ありがたい構文が追加された。 getter-only auto-property property initializer
Show file Open project: ufcpp/UfcppSample

Public Methods

Method Description
InnerProduct ( Point p ) : int
Point ( int x, int y )
ToString ( ) : string
operator ( ) : Point

Method Details

InnerProduct() public method

public InnerProduct ( Point p ) : int
p Point
return int

Point() public method

public Point ( int x, int y )
x int
y int

ToString() public method

public ToString ( ) : string
return string

operator() public static method

public static operator ( ) : Point
return Point