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

Commit

Permalink
Set AllowDuplicates to a read-only property.
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingOctocat committed Jul 28, 2023
1 parent 3cfd951 commit 812002d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WpfObservableRangeCollection/ObservableRangeCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ public ObservableRangeCollection(List<T> list, bool allowDuplicates = true, Equa
#region Public Properties

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

/// <summary>
/// Supports for <see cref="AllowDuplicates"/>.
Expand Down

0 comments on commit 812002d

Please sign in to comment.