Extension method

In object-oriented computer programming, an extension method is a method added to an object after the original object was compiled. The modified object is often a class, a prototype or a type. Extension methods are features of some object-oriented programming languages. There is no syntactic difference between calling an extension method and calling a method declared in the type definition.

Comment
enIn object-oriented computer programming, an extension method is a method added to an object after the original object was compiled. The modified object is often a class, a prototype or a type. Extension methods are features of some object-oriented programming languages. There is no syntactic difference between calling an extension method and calling a method declared in the type definition.
Has abstract
enIn object-oriented computer programming, an extension method is a method added to an object after the original object was compiled. The modified object is often a class, a prototype or a type. Extension methods are features of some object-oriented programming languages. There is no syntactic difference between calling an extension method and calling a method declared in the type definition. Not all languages implement extension methods in an equally safe manner, however. For instance, languages such as C#, Java (via Manifold or Lombok), and Kotlin don't alter the extended class in any way, because doing so may break class hierarchies and interfere with virtual method dispatching. This is why these languages strictly implement extension methods statically and use static dispatching to invoke them.
Hypernym
Method
Is primary topic of
Extension method
Label
enExtension method
Link from a Wikipage to an external page
archive.codeplex.com/%3Fp=zielonka
www.drdobbs.com/cpp/uniform-function-call-syntax/232700394
www.codedigest.com/Articles/CSHARP/357_Understanding_Extension_Methods_in_C_.aspx
csharp-software-development.blogspot.com/2014/09/c-extension-methods.html
www.a2zmenu.com/CSharp/CSharp-Extension-Method.aspx
blogs.microsoft.co.il/blogs/basil/archive/2008/09/22/defining-your-own-functions-in-jquery.aspx
manifold.systems/docs.html%23extension-classes
manifold.systems/docs.html%23the-extension-manifold
projectlombok.org/features/experimental/ExtensionMethod
programmerchoice.blogspot.com/2010/06/extension-methods.html
kotlinlang.org/docs/reference/extensions.html
manifold.systems/
zielonka.codeplex.com/
csharp-extension.com/
www.extensionmethod.net/
docs.ruby-lang.org/en/2.5.0/syntax/refinements_rdoc.html
msdn.microsoft.com/en-us/library/system.collections.ienumerable.aspx
msdn.microsoft.com/en-us/library/system.linq.aspx
Link from a Wikipage to another Wikipage
Anonymous function
Anonymous type
Assembly (CLI)
Boxing (programming)
Category:Articles with example C Sharp code
Category:Method (computer programming)
Class hierarchy
Compiler
C Sharp (programming language)
C Sharp syntax
Dart (programming language)
D programming language
Duck typing
Dynamic programming language
Executable
Expression tree
Floating point
Gevent
Gosu (programming language)
Infix notation
Inheritance (computer science)
Inheritance (object-oriented programming)
Integer (computer science)
Java (programming language)
JavaScript
Kotlin (programming language)
Language Integrated Query
Method (computer programming)
Microsoft .NET
Microsoft Visual Studio
Monkey patch
Object composition
Object-oriented computer programming
Oxygene (programming language)
Polish notation
Protocol (object-oriented programming)
Python (programming language)
Ruby (programming language)
Smalltalk
Source code
Static dispatch
String (computer science)
Type class
UFCS
Utility class
VB.NET
Virtual function
Xojo
SameAs
3yWga
Erweiterungsmethode
m.027jfby
Q4291893
Метод расширения
Метод розширення
متدهای توسعه
Subject
Category:Articles with example C Sharp code
Category:Method (computer programming)
WasDerivedFrom
Extension method?oldid=1119259613&ns=0
WikiPageLength
20405
Wikipage page ID
8778607
Wikipage revision ID
1119259613
WikiPageUsesTemplate
Template:Citation needed
Template:Essay
Template:Reflist
Template:Short description