Dultus
❔ The best way to create custom types?
Hey, what's the best way to implement a custom type?
E.g. I want an Id and instead of having it like this:
I want it like that:
So I don't calculate with the ID for example because it's an ID, not some random number.
15 replies
❔ Best way to wait for a certain time?
Imagine I have a program running on a server and I want to have it do a certain operation at 9am, what's the best way in C# to do so?
I'd like to just have an event that triggers at this time. Is there a performance friendly way?
I'd probably use a timer with an interval I calculate until it's 9am?
Thanks!
5 replies
❔ Generalise Attributes?
Is there a way to generalise Attributes?
I'd like to create a library in which I can just pass in what Enum to watch out for.
So I'd like to replace the EPartnership/ECategory enum with any enum passed into the attribute.
What would be the smartest way to get around this?
11 replies
❔ How to I use my domain for my ASP.NET REST?
Hi, question basically says it all.
I don't have current application but I'm curious. I do have a domain on a webspace. So I'd host my application on a different Root Server.
I am able to create Subdomains - how would I make my REST Application available from that subdomain?
2 replies
❔ Can't use ToastContentBuilder.Show();
Hey, so I've created a WPF project in .NET 7.0 and wanted to use the Microsoft.Toolkit.Uwp.Notifications package with the ToastContentBuilder.
I can't use the Show method for some reason. Documentation says that I should be on version 7.0 (using the newest one 7.1.3 (a downgrade didn't help either)), .NET 6 oder later and at least on net6.0-windows10.0.17763.0 or greater.
Again, a downgrade didn't help here either.
Someone got an idea?
5 replies