Pattern Matching for switch (Preview)
GPTKB entity
Statements (63)
Predicate | Object |
---|---|
gptkbp:instance_of |
gptkb:language
|
gptkbp:bfsLayer |
4
|
gptkbp:bfsParent |
gptkb:Java_SE_19
gptkb:JDK_19 gptkb:Java_20 gptkb:Java_SE_18 gptkb:Java_18 gptkb:JDK_18 gptkb:JDK_20 gptkb:JEP_488 |
gptkbp:allows |
more expressive code
|
gptkbp:can_be_used_with |
LINQ queries
tuples |
gptkbp:developed_by |
gptkb:Microsoft
|
gptkbp:enables |
deconstruction of objects
|
gptkbp:enhances |
switch statement
|
gptkbp:features |
C# programming language
improves performance enhances maintainability reduces complexity supports pattern matching with arrays supports pattern matching with async/await. supports pattern matching with attributes supports pattern matching with classes supports pattern matching with collections supports pattern matching with delegates supports pattern matching with dynamic types supports pattern matching with enums supports pattern matching with events supports pattern matching with exceptions supports pattern matching with generics supports pattern matching with interfaces supports pattern matching with methods supports pattern matching with nullable types supports pattern matching with properties supports pattern matching with records supports pattern matching with structs supports pattern matching with tasks supports pattern matching with threads |
https://www.w3.org/2000/01/rdf-schema#label |
Pattern Matching for switch (Preview)
|
gptkbp:improves |
code readability
|
gptkbp:introduced |
C# 8.0
|
gptkbp:is_aimed_at |
reducing boilerplate code
|
gptkbp:is_available_in |
gptkb:Visual_Studio_2019
|
gptkbp:is_compatible_with |
async programming
|
gptkbp:is_designed_to |
handle multiple conditions
simplify code structure |
gptkbp:is_documented_in |
Microsoft Docs
|
gptkbp:is_influenced_by |
pattern matching in functional languages
|
gptkbp:is_part_of |
C# language features
C# language evolution C# 9.0 enhancements |
gptkbp:is_related_to |
gptkb:switch_expressions
functional programming |
gptkbp:is_supported_by |
gptkb:Roslyn_compiler
|
gptkbp:is_used_for |
type checking
|
gptkbp:is_used_in |
game development
web development conditional logic |
gptkbp:supports |
constant patterns
type patterns var patterns |
gptkbp:watch_features |
in . NET Core
|