Skip to content

Commit 9878d2a

Browse files
committed
Avoid the "gets or sets" verbiage for records
Records are immutable, so while their properties can be set during initialization, they'll be in a read-only state for most developers. Given that, prefer just "gets" over "gets or sets". (This could, alternatively, use the more accurate "gets or initializes".)
1 parent 7074bde commit 9878d2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OnTopic.ViewModels/BindingModels/AssociatedTopicBindingModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public record AssociatedTopicBindingModel : IAssociatedTopicBindingModel {
2727
| PROPERTY: UNIQUE KEY
2828
\-------------------------------------------------------------------------------------------------------------------------*/
2929
/// <summary>
30-
/// Gets or sets the topic's <see cref="UniqueKey"/> attribute, the unique text identifier for the topic.
30+
/// Gets the topic's <see cref="UniqueKey"/> attribute, the unique text identifier for the topic.
3131
/// </summary>
3232
/// <requires description="The value from the getter must not be null." exception="T:System.ArgumentNullException">
3333
/// value is not null

0 commit comments

Comments
 (0)