Coding Faster with the dotNetTips Utility: November 2020 Update

My goal is to release quarterly updates to my NuGet packages and source code. This November 2020 update includes code I moved some code from my CLR open-source projects. It also includes over 28 new methods and types along with more unit testing and more benchmark tests. Below, I have documented some of the new … Continue reading Coding Faster with the dotNetTips Utility: November 2020 Update

Announcing V2020.9.20.01 of the dotNetTips.Utility Assemblies and NuGet Packages!

Announcing version 2020.9.20.01 of the dotNetTips.Utility .NET Core assemblies. During the pandemic, I've been adding a lot more classes, helper classes, extensions, and more. Go here for the repository: https://github.com/RealDotNetDave/dotNetTips.Utility.Core/releases Go here for the NuGet packages: https://www.nuget.org/profiles/davidmccarter Updated Assemblies and NuGet Packages Here is a list of the new assemblies and NuGet packages: dotNetTips.Utility.Core.Windows dotNetTips.Utility.Standard … Continue reading Announcing V2020.9.20.01 of the dotNetTips.Utility Assemblies and NuGet Packages!

Make Encapsulation Easy with dotNetTips.Utility

Encapsulation is the first pillar of Object-Oriented Programming (OOP), yet most code that I see does not implement encapsulation correctly or not all. Like I say in many of my conference sessions "If you do not implement encapsulation, you aren't doing OOP!" I also say "Bad data in, bad data out!".Several years ago, Microsoft Labs … Continue reading Make Encapsulation Easy with dotNetTips.Utility

Using Generic Constraints & Default

Here is a great video from one of my buddies, Jeremy Clark, on generic constraints and default: Here is an extension method I made from Jeremy's second example: public static T Max<T>(this T obj1, T obj2) where T : IComparable {     if obj1.CompareTo(obj2) >= 0 ? return obj1 : return obj2; }