Problem Is there a better, more elegant solution to the following method? Boolean[] spades = new Boolean[10]; // 40 cards […]
Category: .Net
Convert IEnumerable to HTML table string
Problem My code can generate HTML table strings well, but it depends on JSON.NET. I’m converting IEnumerable to an HTML […]
Safe Dispose of Timer
Problem I am currently refactoring a larger solution where the compiler gave multiple warnings about disposing the used System.Timers.Timer instances. […]
Convert a c# decimal to big-endian byte array
Problem Following the avro schema documentation for decimals I’ve created a method to turn a decimal into a byte array. […]
Finding MinMax values and returning a tuple as a result
Problem I was coding some tooling stuff when I started to ponder whether the best return type for a Range […]
Checking if a directory exists in FTP without relying on exception handling
Problem I’ve written a method to check if a directory already exists on an FTP server. The only way I […]
Can this async method be improved or simplified
Problem I was tasked to write process that initially seemed like a straight forward thing. “Fetch data from database, create […]
Pinging application
Problem I know this may be very time consuming for you as the answerer of this question, but I have […]
De-serializing and serializing objects to be sent over the network
Problem I am serializing and de-serializing a class object within the class which is then sent over the network like […]
Elevator Interview Problem OOP – Revised
Problem Elevator program code challenge, revised: Can someone please critique my Elevator problem – I wanted to use OOP principles […]