In Javascript you can define an anynomous function like:
var InJavasript = (
function(){
return "some value";
})()
In C#: (need specifiy a function type)
var InCSharp = (
(Func<string>)delegate(){
return "some value";
})();
http://msdn.microsoft.com/en-us/library/bb549151.aspx
Tuesday, October 23, 2012
Monday, October 22, 2012
Closure in C#
http://diditwith.net/PermaLink,guid,235646ae-3476-4893-899d-105e4d48c25b.aspx
static List<string> GetNamesStartingWith(string startingText)
{
return g_Names.FindAll(
delegate(string name)
{
return name.StartsWith(startingText);
});
}
static List<string> GetNamesStartingWith(string startingText)
{
return g_Names.FindAll(
delegate(string name)
{
return name.StartsWith(startingText);
});
}
Friday, October 19, 2012
Wednesday, October 17, 2012
What is TypeScript?
TypeScript is the Typed Javascript

http://blogs.msdn.com/b/somasegar/archive/2012/10/01/typescript-javascript-development-at-application-scale.aspx
http://blogs.msdn.com/b/somasegar/archive/2012/10/01/typescript-javascript-development-at-application-scale.aspx
How to implement Paypal IPN, Instant Payment Notification, in ASP.NET?
Step one:
Understand IPN working flow:

https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_admin_IPNIntro
Step two:
The code for Step 3
https://cms.paypal.com/cms_content/CA/en_US/files/developer/IPN_ASP_NET_C.txt
Understand IPN working flow:

https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_admin_IPNIntro
Step two:
The code for Step 3
https://cms.paypal.com/cms_content/CA/en_US/files/developer/IPN_ASP_NET_C.txt
Subscribe to:
Posts (Atom)