Top "Extension-methods" questions

An extension method is a language feature of some languages, such as Swift, Visual Basic.

ASP.NET repeater alternate row highlighting without full blown <alternatingitemtemplate/>

I'm trying to accomplish simply adding a css class to a div on alternate rows in my <itemtemplate/> …

c# asp.net data-binding extension-methods repeater
Where is the "Fold" LINQ Extension Method?

I found in MSDN's Linq samples a neat method called Fold() that I want to use. Their example: double[] doubles = { 1.7, 2.3, 1.9, 4.1, 2.9 }; …

c# linq extension-methods reduce
Extension Method vs. Helper Class

Possible Duplicate: Extension Methods vs Static Utility Class I am building an API of general functions which perform actions based …

c# .net extension-methods helper
Is it possible to create constructor-extension-method ? how?

Is it possible to add a constructor extension method ? I want to add a List< T > constructor to …

c# constructor extension-methods
Is there any way in C# to override a class method with an extension method?

There have been occasions where I would want to override a method in a class with an extension method. Is …

c# extension-methods overriding
Is it possible to implement mixins in C#?

I've heard that it's possible with extension methods, but I can't quite figure it out myself. I'd like to see …

c# extension-methods mixins
Can C# extension methods access private variables?

Is it possible to access an object's private variables using an extension method?

c# extension-methods
Reflection to Identify Extension Methods

In C# is there a technique using reflection to determine if a method has been added to a class as …

c# reflection extension-methods
Extension method on enumeration, not instance of enumeration

I have an enumeration for my Things like so: public enum Things { OneThing, AnotherThing } I would like to write an …

c# enums extension-methods
Detect target framework version at compile time

I have some code which makes use of Extension Methods, but compiles under .NET 2.0 using the compiler in VS2008. To …

c# .net visual-studio msbuild extension-methods