C# 클래스 SampleNamespace.ExpressionBodies.Vector

Class containing expression bodies on method-like members.
파일 보기 프로젝트 열기: MarcStan/NArrange

공개 프로퍼티들

프로퍼티 타입 설명
X int
Y int

공개 메소드들

메소드 설명
Add ( Vector other ) : Vector

This method adds two vectors.

Move ( int dx, int dy ) : Vector

Print ( ) : void

Prints the vector to console.

Vector ( int x, int y ) : System
operator ( ) : Vector

This is a comment.

메소드 상세

Add() 공개 메소드

This method adds two vectors.
public Add ( Vector other ) : Vector
other Vector
리턴 Vector

Move() 공개 메소드

public Move ( int dx, int dy ) : Vector
dx int
dy int
리턴 Vector

Print() 공개 메소드

Prints the vector to console.
public Print ( ) : void
리턴 void

Vector() 공개 메소드

public Vector ( int x, int y ) : System
x int
y int
리턴 System

operator() 공개 정적인 메소드

This is a comment.
public static operator ( ) : Vector
리턴 Vector

프로퍼티 상세

X 공개적으로 프로퍼티

public int X
리턴 int

Y 공개적으로 프로퍼티

public int Y
리턴 int