http://www.c-sharpcorner.com/UploadFile/puranindia/extension-methods-in-C-Sharp-3-0/
In above web page Extension Methods is explained.
Can you tell me please where I can find ClassLibExtMethod.dll file? As directed in the article to "Add the reference of the previously created class library to this project".
I couldn't see any ClassLibExtMethod.dll file in ClassLibExtMethod folder.
I use VS 2012 Express.
Loading
VulpesPosted Jul 18, 2014, 7:44 PM
I've had to alter the code in the Main method slightly to get it to print the same output as in the article.
Posted Jul 19, 2014, 12:21 PM
VulpesPosted Jul 19, 2014, 4:06 AM
Although they're really just static methods (and can be called as such if you want) they're made to look as though they're instance methods of the type in question.
Posted Jul 18, 2014, 8:52 PM
Quoting your example, please explain why it is called extended method.
Posted Jul 18, 2014, 4:21 PM
Pradeep ShetPosted Jul 18, 2014, 4:07 PM
Posted Jul 18, 2014, 12:15 PM
Abhishek KumarPosted Jul 18, 2014, 12:05 PM
Bin-> debug folder then you will able to see the dll created after successful build.
Posted Jul 18, 2014, 10:27 AM
I attach what is in ClassLibExtMethod folder.
Abhishek KumarPosted Jul 18, 2014, 10:17 AM
You need to create a new Class Library project named ClassLibExtMethod as explained in the article.
After building successfully dll will be created and you can use that .dll in your project.
Hope this make it clear.
Abhishek