While I’ll probably (have to) focus on Java for the next month, I just came up with the idea of just another extension method class. It is acually not very helpful but it again shows how powerful extension methods can be.
This is how it can be used:
I know that this piece of code […]
I’ve just made another tiny addition to my extension method class / project, adding a small, but maybe useful method:
This is how to use it to consume an IEnumerable<T> multiple times:
It’s not a big deal, but maybe it’s helpful anyway. Btw, the source code is […]
There are a lot of cool features in the current C# version (and I’m sure that I will cover most of them in future postings), but one of the features I like most are Extension Methods.
If you’ve never heard about Extension Methods, let me cite the MSDN documentation on Extension Methods:
TagsArduino ATtiny blinking C# Code-Download Coding Converter email FEZ first steps GPIO Hardware ID12 James Java JSP jspinfo LCD LED Lights Linux microcontroller Netduino NETMF Network NewBase60 opensource Panda II PWM Python Raspberry Pi RFID RGB screen server shell slow motion Traffic Light video WS2812