switch_expression.cs

C#Intermediário

Explorer

C40
C++40
C#
Iniciante10
Intermediário10
foreach_loop.cs
linq_select.cs
try_catch.cs
lambda_expression.cs
dictionary_init.cs
extension_method.cs
pattern_matching.cs
tuple_usage.cs
null_coalescing.cs
switch_expression.cs
Avançado10
Especialista5
Mestre5
Dart40
Go40
Java40
JavaScript40
Kotlin40
Objective-C40
Perl40
PHP40
Python40
R40
Ruby40
Rust40
Shell40
Swift40
TypeScript40
switch_expression.cs
Click to focus
1
2
3
4
5
6
var result = status switch
{
    "active" => true,
    "inactive" => false,
    _ => null
};
0WPM0%0:000/92(0%)|Ln 1, Col 1
UTF-8C#

Exercícios Relacionados