// Latest posts
Blog
Paul Seal's personal blog
Blog posts
134 results found
dotnet
List ForEach Method
You 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.