会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
你妹的取名这么难
首页
联系
管理
2012年5月6日
C# 为String类型增加方法
摘要: namespace MyExtensionMethods{ public static class MyExtensions { public static int MyGetLength(this System.String target) { return target.Length; } }}使用时,需要引入这个名字空间,引用如下:string str = "dafasdf";int len = str.MyGetLength();
阅读全文
posted @ 2012-05-06 03:32 你妹的取名这么难
阅读(2007)
评论(0)
推荐(1)
编辑
公告