Skip to content

Instantly share code, notes, and snippets.

@richlander
Created September 14, 2020 23:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richlander/72091c7fb77c6b82ddd93da342326866 to your computer and use it in GitHub Desktop.
Save richlander/72091c7fb77c6b82ddd93da342326866 to your computer and use it in GitHub Desktop.
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment