Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 812002d

Browse files
committed
Set AllowDuplicates to a read-only property.
1 parent 3cfd951 commit 812002d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WpfObservableRangeCollection/ObservableRangeCollection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ public ObservableRangeCollection(List<T> list, bool allowDuplicates = true, Equa
9494
#region Public Properties
9595

9696
/// <summary>
97-
/// Gets or sets a value indicating whether this collection acts as a <see cref="HashSet{T}"/>,
97+
/// Gets a value indicating whether this collection acts as a <see cref="HashSet{T}"/>,
9898
/// disallowing duplicate items, based on <see cref="Comparer"/>.
9999
/// This might indeed consume background performance, but in the other hand,
100100
/// it will pay off in UI performance as less required UI updates are required.
101101
/// Default value: <see langword="true"/>.
102102
/// </summary>
103-
public bool AllowDuplicates { get; set; } = true;
103+
public bool AllowDuplicates { get; } = true;
104104

105105
/// <summary>
106106
/// Supports for <see cref="AllowDuplicates"/>.

0 commit comments

Comments
 (0)