Skip to content

Commit 0b5b1e3

Browse files
Correct property and field names (#44097)
1 parent 05a52e8 commit 0b5b1e3

File tree

1 file changed

+1
-1
lines changed
  • docs/csharp/language-reference/keywords

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ helpviewer_keywords:
99
---
1010
# The `value` implicit parameter
1111

12-
The implicit parameter `value` is used in the `set` accessor in [property](../../programming-guide/classes-and-structs/properties.md) and [indexer](../../programming-guide/indexers/index.md) declarations. It's an input parameter of a method. The word `value` references the value that client code is attempting to assign to the property or indexer. In the following example, `TimePeriod2` has a property called `Name` that uses the `value` parameter to assign a new string to the backing field `name`. From the point of view of client code, the operation is written as a simple assignment.
12+
The implicit parameter `value` is used in the `set` accessor in [property](../../programming-guide/classes-and-structs/properties.md) and [indexer](../../programming-guide/indexers/index.md) declarations. It's an input parameter of a method. The word `value` references the value that client code is attempting to assign to the property or indexer. In the following example, `TimePeriod2` has a property called `Seconds` that uses the `value` parameter to assign a new string to the backing field `_seconds`. From the point of view of client code, the operation is written as a simple assignment.
1313

1414
:::code language="csharp" source="./snippets/PropertyAccessors.cs" id="GetSetExpressions":::
1515

0 commit comments

Comments
 (0)