Skip to content

Instantly share code, notes, and snippets.

@richlander

richlander/console.txt Secret

Created Sep 14, 2020
Embed
What would you like to do?
Using Records with .NET 5.0 RC1
D:\git>git clone https://gist.github.com/83d2ccde88218e56e6b93a55db3f986b.git battery-record
Cloning into 'battery-record'...
remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 7 (delta 1), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (7/7), 902 bytes | 22.00 KiB/s, done.
D:\git>cd battery-record
D:\git\battery-record>dotnet --version
5.0.100-rc.1.20452.10
D:\git\battery-record>dotnet run
Battery { Model = CR2032, TotalCapacityAmpHours = 0.235, RemainingCapacityPercentage = 100 }
Battery { Model = CR2032, TotalCapacityAmpHours = 0.235, RemainingCapacityPercentage = 0 }
D:\git\battery-record>
@richlander

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.