Skip to content

Commit a7244fb

Browse files
pkulikovBillWagner
authored andcommitted
Updated default.md (#4993)
* Updated default.md * Returns -> Produces * default.md - removed not complete definition of default(T) * operators main page: removed not complete definition of default(T)
1 parent 5519d51 commit a7244fb

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

docs/csharp/language-reference/keywords/default.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,13 @@ ms.author: "wiwagn"
1818

1919
# default (C# Reference)
2020

21-
The `default` keyword.
22-
2321
The `default` keyword can be used in the `switch` statement or in a default value expression:
2422

2523
- [The switch statement](switch.md): Specifies the default label.
2624

27-
- [Default value expressions](../../programming-guide/statements-expressions-operators/default-value-expressions.md): Produces the default value of the type. This will be null for reference types and zero for value types, and the 0 bit pattern for structs.
25+
- [Default value expressions](../../programming-guide/statements-expressions-operators/default-value-expressions.md): Produces the default value of a type.
2826

29-
## See Also
27+
## See also
3028

3129
[C# Reference](../index.md)
3230
[C# Programming Guide](../../programming-guide/index.md)

docs/csharp/language-reference/operators/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ C# provides many operators, which are symbols that specify which operations (mat
5858

5959
[unchecked](../../../csharp/language-reference/keywords/unchecked.md) – disables overflow checking for integer operations. This is the default compiler behavior.
6060

61-
[default(T)](../../../csharp/programming-guide/statements-expressions-operators/default-value-expressions.md)returns the default value of type T: `null` for reference types, zero for numeric types, and zero/`null` filled in members for struct types.
61+
[default(T)](../../../csharp/programming-guide/statements-expressions-operators/default-value-expressions.md)produces the default value of type T.
6262

6363
[delegate](../../../csharp/programming-guide/statements-expressions-operators/anonymous-methods.md) – declares and returns a delegate instance.
6464

0 commit comments

Comments
 (0)