optional parameter in c# 4
Posted
by anirudha
on Geeks with Blogs
See other posts from Geeks with Blogs
or by anirudha
Published on Sun, 16 May 2010 06:40:57 GMT
Indexed on
2010/05/16
7:51 UTC
Read the original article
Hit count: 185
Filed under:
public static string name(int name=4)
{
// code logic here
}
this advanced feature only include in Vc# 4. if you call it name() then he accept by default 4 and if you call it name(5) then he accept 5
© Geeks with Blogs or respective owner