Tostisto
Problem with json deserialization
I have an issue with deserialization of the datetime from a JSON string.
I need to deserialize
2024-07-09T10:36:23:000Z
into a datetime object, but currently, I am having a problem with deserialization.
My code looks like this:
With this error
Shoud be problem in culture setting in os? Or how can I serialize it without creating a new converter?7 replies
❔ Laptop Battery Info
I would like to create a simple app that monitors information about the battery, such as its overall health, capacity, voltage, and other relevant details. Currently, I have create a basic console app in .NET Core that retrieves some information about the battery. Here's the existing code:
However, this code does not provide all the desired information about the battery. I need to retrieve additional details like the current battery capacity and designed battery capacity. How can I modify the code to obtain these missing or additional battery information?
Here's the sample output from the current code:
2 replies