Jason
Jason
CC#
Created by Jason on 1/5/2023 in #help
Restart method with fresh list to iterate through without triggering 'collection was modified' error
SOLVED: I needed to create a new list scoped to that try-catch block and pass the current lists' contents to that new one, then iterate through that one. Simple.
7 replies
CC#
Created by Jason on 1/5/2023 in #help
Restart method with fresh list to iterate through without triggering 'collection was modified' error
So, normally the task just ends on its own and I then need to manually restart the process with a fresh list. I'm trying to automate that process under certain exceptions. That's why.
7 replies
CC#
Created by Jason on 1/5/2023 in #help
Restart method with fresh list to iterate through without triggering 'collection was modified' error
I am using item inside the loop. I didn't include the exact logic for simplicity's sake, but that item is being stored in the db if it meets certain criteria. So it is being used.
7 replies
CC#
Created by Jason on 11/10/2022 in #help
❔ Extract PDF SDK logic inside .Net Blazor component not working, but does work with razor page
3 replies
CC#
Created by Jason on 11/7/2022 in #help
ActivatorUtilities.CreateInstance of a class instantiated within Program.cs 'unable to resolve type'
Why did that work. I knew about the lack of async but left it as is because, long story short, the parsing method is making use of two services, one of of which is async, the other not. So I was just Task.FromResult()ing that
15 replies
CC#
Created by Jason on 11/7/2022 in #help
ActivatorUtilities.CreateInstance of a class instantiated within Program.cs 'unable to resolve type'
15 replies
CC#
Created by Jason on 11/7/2022 in #help
ActivatorUtilities.CreateInstance of a class instantiated within Program.cs 'unable to resolve type'
I'm trying it out now, thanks. I didn't see anything about scoping in the error but I'll look again
15 replies
CC#
Created by Jason on 11/7/2022 in #help
ActivatorUtilities.CreateInstance of a class instantiated within Program.cs 'unable to resolve type'
15 replies
CC#
Created by Jason on 11/7/2022 in #help
ActivatorUtilities.CreateInstance of a class instantiated within Program.cs 'unable to resolve type'
I tried that method, using host.Services, and I still got the error, so I tried explicitly naming the services and that's what you see above
15 replies
CC#
Created by Jason on 9/23/2022 in #help
Sort properties (with annotations) in class?
Resharper did it!
5 replies
CC#
Created by Jason on 9/23/2022 in #help
Sort properties (with annotations) in class?
Code Maid did indeed sort them with annotations kept in place (using Reorganize feature), but I think there's some kind of cache issue because Visual Studio crashes afterward. I'm gonna try Resharper and see if I get success
5 replies
CC#
Created by Jason on 9/23/2022 in #help
Sort properties (with annotations) in class?
Thanks
5 replies