Blog
Paul Seal's personal blog
Blog posts
If you ever wanted a simple bit of jQuery to copy values from one set of texboxes, to another set of texboxes, this is the post for you. This is useful for copying billing address details over to the shipping address. I looked everywhere for a post like this to give me the answer, so now that I solved it myself, I created the post for others who are looking for the same answer.
dotnet Sorting a list into random order using linqEvery now and again, there is a need to produce a list in a random order. I've found a very reliable way to do this using linq and the Guid class. It might sound complicated, but when you see the example, it should make sense and you should see how simple it is.
dotnet List ForEach MethodYou may or may not be aware of the .ForEach() Method which is available on List<T> objects. It is very handy for shortening your code. Lets say you want to write a method which returns a list of MailAdress objects. A more traditional way would be to do the following:
dotnet Null-coalescing OperatorShorter code for using the value of a nullable object or another value if not.
tools How to generate random and realistic data onlineIf you want to be able to generate random and realistic data for your program, there is a fantastic free resource called Mockaroo.