C# Class VersionSample.Csharp6.NullConditionalSample

null 条件演算子。 これも、一度変数に受ける必要がなくなったり、? : 演算子のウザったさがなくなるだけの割とシンプルの構文糖衣。
Exibir arquivo Open project: ufcpp/UfcppSample

Public Methods

Method Description
DifferentFromY ( Entry x ) : int?
SameAsX ( Entry x ) : int
SameAsY ( Entry x ) : int?
X ( Entry x ) : int
Y ( Entry x ) : int?
Z ( ) : void

Method Details

DifferentFromY() public static method

public static DifferentFromY ( Entry x ) : int?
x Entry
return int?

SameAsX() public static method

public static SameAsX ( Entry x ) : int
x Entry
return int

SameAsY() public static method

public static SameAsY ( Entry x ) : int?
x Entry
return int?

X() public static method

public static X ( Entry x ) : int
x Entry
return int

Y() public static method

public static Y ( Entry x ) : int?
x Entry
return int?

Z() public static method

public static Z ( ) : void
return void