Loosly Coupled Database Class – example

I thought I would practice on creating a loosly coupled database model in .NET. Here is in my opinion, a good way to implement mongodb. Nothing else included than the connect part. This is what all our clients can do which is Connect and Disconnect. Seems reasonble enough. Then let’s make a client utulizing this …

C# Sorting a List with numbers with colons or comma format

I had a problem where I had to sort a list where there where values with colons, like chapters or similar in ascending order. If you have a List with dot or comma values instead, you can use the same method. 1:3 1:4 1:40 1:5 2:4 5:9 4:90 3:500 3:4 1 1:50 The sort order …