Alex Frost
Alex Frost
CC#
Created by Alex Frost on 8/22/2023 in #help
❔ Change datatype during program execution
Yes, that's the fallback now.
10 replies
CC#
Created by Alex Frost on 8/22/2023 in #help
❔ Change datatype during program execution
Alright, thanks so much.
10 replies
CC#
Created by Alex Frost on 8/22/2023 in #help
❔ Change datatype during program execution
Could a List<object> fit in this?
10 replies
CC#
Created by Alex Frost on 8/9/2023 in #help
❔ Get list of indices from a List
Hi, thank you for the guidence. I was able to work it out following what was said and some search:
distinctItems = result.Select((value, index) => new { index, value.PropertyID })
.DistinctBy(p => p.PropertyID)
.ToDictionary(x => x.index, x => x.PropertyID);
distinctItems = result.Select((value, index) => new { index, value.PropertyID })
.DistinctBy(p => p.PropertyID)
.ToDictionary(x => x.index, x => x.PropertyID);
27 replies
CC#
Created by Alex Frost on 11/1/2022 in #help
Help with Implicit Explicit operators
Perfect, thanks a bunch you guys 🙂
12 replies
CC#
Created by Alex Frost on 11/1/2022 in #help
Help with Implicit Explicit operators
.Select(x => new EventViewModel(x)) that seems like a constructor, so I'll have to implement a constructor for ViewModel, right?
12 replies
CC#
Created by Alex Frost on 11/1/2022 in #help
Help with Implicit Explicit operators
Right I used Select but wanted to automate it a bit
12 replies
CC#
Created by Alex Frost on 11/1/2022 in #help
Help with Implicit Explicit operators
So what's the way to do that
12 replies
CC#
Created by Alex Frost on 11/1/2022 in #help
Help with Implicit Explicit operators
🙁
12 replies
CC#
Created by Alex Frost on 10/11/2022 in #help
Pass DateTime.Add function as parameter
Thank you guys, I'll try that. My understanding of C# basic concepts is lacking but will revise.
8 replies