See more posts here: https://snailsharp.dreamwidth.org
Aqua Utopia|海の底で記憶を紡ぐ
h
YOU ARE THE REASON

izzy's playlists!

No title available
let's talk about Bridgerton tea, my ask is open

Discoholic 🪩
he wasn't even looking at me and he found me
we're not kids anymore.
Game of Thrones Daily
Stranger Things

PR's Tumblrdome
almost home

Kiana Khansmith
Sweet Seals For You, Always
$LAYYYTER
Monterey Bay Aquarium

⁂
hello vonnie
I'd rather be in outer space 🛸

seen from United Kingdom

seen from Ukraine
seen from United Kingdom

seen from United States
seen from United States
seen from United Kingdom

seen from United States

seen from Türkiye
seen from United States

seen from United States

seen from United States
seen from Türkiye
seen from United States

seen from United States

seen from Singapore
seen from United States
seen from Australia
seen from Singapore

seen from United States
seen from Peru
@snailsharp
See more posts here: https://snailsharp.dreamwidth.org
Parsing and sorting version numbers in .NET
This seems like a good place to share my absolute favorite line of code.
Sometimes I need to take a version number - something like 5 or 6.4 or 2.25.1 - and see whether it's newer or older than another version number, or maybe just take a list of version numbers like this and put them in order.
The projects I'm working on usually have at least a bit of F# code, or a dependency on an F# library (even if most of the code is C#), so I usually turn to my favorite bit of code to create an equatable, sortable, and immutable "version number" type:
type ProductVersion = { components: int list }