question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A proposal to rework bolded dates collections to HashSet in MonthCalendar

See original GitHub issue

I 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 to BoldedDates property, HashSet remove duplicates, and getter of BoldedDates 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 from List to HashSet in MonthCalendar
  • Rework related properties

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
vladimir-krestovcommented, Sep 2, 2021

@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.

1reaction
kirsan31commented, Mar 6, 2021
  1. _arrayOfDates can be populate with duplicates only through BoldedDates because AddBoldedDate not allowing them. So I already see big controversy here.
  2. Duplicate dates in _arrayOfDates do not affect control in any way besides as RemoveBoldedDate 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 with HashSet 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 🤔
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found