Need to select content from a collection based on weights? Here is a great .NET 4+ class that is very helpful.
The class can be used with just about any collection and you can pass in a delegate/lamda to determine what the weight is on each collection object.
Just some random development ramblings mostly related to the Microsoft .NET platform.
Showing posts with label Random. Show all posts
Showing posts with label Random. Show all posts
Sunday, October 12, 2014
Subscribe to:
Posts (Atom)
Can't RDP? How to enable / disable virtual machine firewall for Azure VM
Oh no! I accidentally blocked the RDP port on an Azure virtual machine which resulted in not being able to log into the VM anymore. I did ...
-
Here is a full test program that demonstrates how to use SharpZipLib to zip an XElement into a byte array. This allows you to transfer larg...
-
Oh no! I accidentally blocked the RDP port on an Azure virtual machine which resulted in not being able to log into the VM anymore. I did ...