You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicvoidAddCategories(List<string>categories){if(Categories==null){Categories=newHashSet<string>(categories);// First change type to HashSet to prevent duplications}else{foreach(var item in categories)// It need to be like that because this is no longer List but HashSet to prevent duplication
Categories.Add(categories);}}
The text was updated successfully, but these errors were encountered:
KondzioSSJ4
changed the title
AddCategories useing provided list as reference (unexpected behaviour)
AddCategories using provided list as reference (unexpected behaviour)
Feb 9, 2022
Hi @KondzioSSJ4! Thanks for bringing this to our attention. This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog.
Issue Summary
AddCategories use provided list as a reference
so any further add's impact on first provided collection
Steps to Reproduce
IOptions<>
as normal ppl do)AddCategories
AddCategories
orAddCategory
)Code Snippet
Your AddCategories looks like:
but it should be more like:
or at least change to be like:
Technical details:
9.25.2.0 (newest)
.netstandard 2.0
The text was updated successfully, but these errors were encountered: