This is an experimental project began few days ago when I accepted a challenge by Kazi Rashid. I had to implement _.debounce() method of Underscore.js in c# to complete this challenge. I thought, why stop at
So, I ended up creating a github project. Currently
_.debounce() methods are implemented and they are published to master branch. However, I will continue to implement other methods in dev branch. Once they are properly tested, they will eventually make their ways into master branch.
I tried to keep the .NET version consistent with Underscore.js, as much as possible. However, Underscore.Net accepts Action as callback functions. Moreover, you can use generic Action<T>. So far, Actions containing up to 4 parameters are supported. For detail usage, please visit the tests in Underscore.Specs folder of the github repo.
Here is a sample usage of Underscore.Net methods implemented so far.
This project is in very early stage. While I encourage constructive criticisms, I would really appreciate some contributions too. Please let me know if you want to contribute to it. Keep in mind that there are lot of underscore methods for which we have much better implementation already in .NET (mostly for Collection and Array section of Underscore.js). So, it would be better if we concentrate on Functions section of Underscore.js first. Let’s make something wonderful together with underscore flavor.