ОЭ
Size: a a a
ОЭ
с
с
ЕО
ОЭ
D
ЕО
ОЭ
ЕО
ОЭ
М
Shape shape = new Rectangle
{
Width = 100,
Height = 100,
Point = new Point { X = 0, Y = 100 }
};
var result = shape switch
{
Rectangle (100, 100, null) => "Found 100x100 rectangle without a point",
Rectangle (100, 100, _) => "Found 100x100 rectangle",
_ => "Different, or null shape"
};
ЕО
ЕО
Shape shape = new Rectangle
{
Width = 100,
Height = 100,
Point = new Point { X = 0, Y = 100 }
};
var result = shape switch
{
Rectangle (100, 100, null) => "Found 100x100 rectangle without a point",
Rectangle (100, 100, _) => "Found 100x100 rectangle",
_ => "Different, or null shape"
};
D
ЕО
ЕО
D
DP
DP