Skip to content

Commit b932420

Browse files
authored
Update types.md (#39214)
There was some duplicate(?) code, demonstrating the creation of two Point instances twice. Surely, no need for this?
1 parent abc5082 commit b932420

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

docs/csharp/tour-of-csharp/types.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ Instances of classes are created using the `new` operator, which allocates memor
3535

3636
The memory occupied by an object is automatically reclaimed when the object is no longer reachable. It's not necessary or possible to explicitly deallocate objects in C#.
3737

38-
:::code language="csharp" source="./snippets/shared/Types.cs" ID="CreatePoints":::
39-
4038
Applications or tests for algorithms might need to create multiple `Point` objects. The following class generates a sequence of random points. The number of points is set by the *primary constructor* parameter. The primary constructor parameter `numberOfPoints` is in scope for all members of the class:
4139

4240
:::code language="csharp" source="./snippets/shared/Types.cs" ID="PointFactoryClass":::

0 commit comments

Comments
 (0)