Top "Extension-methods" questions

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

"unrecognized selector sent to class" when calling category method from a library

Problem This question may seem a bit long, but I try to give as much information as possible, since I …

objective-c cocoa extension-methods foundation unrecognized-selector
Extension method and Explicit casting

I'm using class from some assembly(source code is not available), so it is not possible to change their's code …

c# .net casting extension-methods explicit-conversion
What is the best or most interesting use of Extension Methods you've seen?

I'm starting to really love extension methods... I was wondering if anyone her has stumbled upon one that really blew …

c# .net extension-methods syntactic-sugar
FindAll vs Where extension-method

I just want know if a "FindAll" will be faster than a "Where" extentionMethod and why? Example : myList.FindAll(item=&…

c# lambda extension-methods
Linq extension method, how to find child in collection recursive

I'm already familiar with Linq but have little understanding of extension methods I'm hoping someone can help me out. So …

c# linq recursion extension-methods hierarchy
Extension methods on a static class?

I know i can do the below to extend a class. I have a static class i would like to …

c# extension-methods static-classes
Extension methods conflict

Lets say I have 2 extension methods to string, in 2 different namespaces: namespace test1 { public static class MyExtensions { public static int …

c# methods namespaces extension-methods conflict
Is it possible to write extension methods for Console?

While looking at this question and it's answers I thought that it would be a good idea to write an …

c# console extension-methods
how to use Notification.Name extension from swift 3 to Objective-C

I created an extension for Notification.Name as below : public extension Notification.Name { public static let blahblahblah = Notification.Name(rawValue: "…

ios swift3 notifications extension-methods nsnotification
Why can't I invoke PropertyChanged event from an Extension Method?

I've tried to code a class to avoid a method like "RaisePropertyChanged". I know that I can inherit from a …

c# wpf extension-methods inotifypropertychanged propertychanged