代码改变世界

随笔档案-2010年10月

【还得学】参数中的this

2010-10-21 11:18 by 土星的狗狗, 360 阅读, 收藏,
摘要: “public static string ToPostByRaw(this UrlHelper helper, Blog blog, Post post)” this操作符,标识该方法是作为后跟类型(这里是UrlHelper )的扩展方法,即在UrlHelper 类型上增加ToPostByRaw()方法。 阅读全文
Creative Commons License
It's my life