An extension method is a language feature of some languages, such as Swift, Visual Basic.
Right, so I have an enumerable and wish to get distinct values from it. Using System.Linq, there's of course …
c# c#-3.0 lambda extension-methodsI'm getting the error: Extension methods must be defined in a non-generic static class On the line: public class LinqHelper …
c# .net linq extension-methods compiler-errorsI have an array of integers in string form: var arr = new string[] { "1", "2", "3", "4" }; I need to an array of 'real' …
c# .net linq extension-methodsDoes C# have extension properties? For example, can I add an extension property to DateTimeFormatInfo called ShortDateLongTimeFormat which would return …
c# properties extension-methodsI'm a fan of extension methods in C#, but haven't had any success adding an extension method to a static …
c# static extension-methodsin the System.Linq namespace, we can now extend our IEnumerable's to have the Any() and Count() extension methods. I …
.net linq performance .net-3.5 extension-methodsInspired by another question asking about the missing Zip function: Why is there no ForEach extension method in the Enumerable …
c# .net vb.net extension-methodsCan extension methods be applied to the class? For example, extend DateTime to include a Tomorrow() method that could be …
c# extension-methodsI am attempting to do some data conversion. Unfortunately, much of the data is in strings, where it should be …
c# .net generics extension-methods type-conversionLet's make a list of answers where you post your excellent and favorite extension methods. The requirement is that the …
c# .net open-source extension-methods