Playing With Extension Methods


/ Published in: C#
Save to your folder(s)

In Ruby you can write 5.times { print "Hello World" } . With a simple extension method I was able to do something similar with C#.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.