A proposal to rework bolded dates collections to HashSet in MonthCalendar
See original GitHub issueI propose to change type of _arrayOfDates
, _annualArrayOfDates
, _monthlyArrayOfDates
collections from List
to HashSet
in MonthCalendar
to improve performance and clean up the code.
This change allows to make the implementation more logical and avoid extra checks of containing items.
User impact
- Due to
HashSet
can’t store duplicates of items, our collections will store only unique dates. So, if a user set some array with duplicate items toBoldedDates
property,HashSet
remove duplicates, andgetter
ofBoldedDates
property will return lesser collection to the user. This returned collection will be different from the initial user array. But it looks logical to me, because we shouldn’t store and show duplicate dates. But we need to discuss any cases when we must store duplicate dates.
Will this feature affect UI controls?
- No
Is your feature request related to a problem? Please describe.
- No
Describe the solution you’d like and alternatives you’ve considered
- Change type of
_arrayOfDates
,_annualArrayOfDates
,_monthlyArrayOfDates
collections fromList
toHashSet
inMonthCalendar
- Rework related properties
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:10 (10 by maintainers)
Top Results From Across the Web
Display Specific Days in Bold with MonthCalendar Control
The MonthlyBoldedDates property contains dates that appear in bold every month. Each of these properties contains an array of DateTime objects.
Read more >Culture Aware Month Calendar and DatePicker
The first collection holds the definitions of categories for bolded dates, and the second the bolded dates with corresponding category.
Read more >Untitled
Fexpx holdings, Come home to me darling lyrics, Minecraft evil mobs 1 hour, Aerobika, 2 month calendar on one page, Volkswagen gol gl...
Read more >Untitled
Count weekdays between dates excel, Tom ward actor, Dimeritium bomb, Florida padri. ... Naff dosa apa mp3 index, Accepting a job offer over...
Read more >Untitled
Foto mia plan b remix youtube, So this is goodbye william fitzsimmons remix little einsteins! Jazan refinery project update software, Dicyemida pdf free, ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Tanya-Solyanik, I would propose to close this Issue to reduce Backlog. If a customer have the issues, he/she will create a duplicate Issue. So if you agree, please close this.
_arrayOfDates
can be populate with duplicates only throughBoldedDates
becauseAddBoldedDate
not allowing them. So I already see big controversy here._arrayOfDates
do not affect control in any way besides asRemoveBoldedDate
will remove them one by one in each call. And the date will be bold until the last one is deleted. This is the only difference withHashSet
that will remove bold on first call. And I can’t think of a practical useful use case for removing bold date in multiple passes instead of one 🤔