Skip to content

Commit c68fcdf

Browse files
svickBillWagner
authored andcommitted
Remove mentions about structs (#6363)
1 parent 921261e commit c68fcdf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/csharp/pattern-matching.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@ to those statements.
3939
In this topic, you'll build a method that computes the area of
4040
different geometric shapes. But, you'll do it without resorting to object
4141
oriented techniques and building a class hierarchy for the different shapes.
42-
You'll use *pattern matching* instead. To further emphasize that we're not
43-
using inheritance, you'll make each shape a `struct` instead of a class.
44-
Note that different `struct` types cannot specify a common user defined
45-
base type, so inheritance is not a possible design.
42+
You'll use *pattern matching* instead.
4643
As you go through this sample, contrast this code with how it would
4744
be structured as an object hierarchy. When the data you must
4845
query and manipulate is not a class hierarchy, pattern matching enables

0 commit comments

Comments
 (0)