Extension Methods from Txaran Rodriguez
-
AddIf
Extension that adds an element to a collection only if a given condition is met. Same as if (some condition) collection.Add(element)
ExtensionMethod.NET Home of 880 C#, Visual Basic, F# and Javascript extension methods
Extension that adds an element to a collection only if a given condition is met. Same as if (some condition) collection.Add(element)