会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
TonyKent's Blog
Walk with Microsoft~
博客园
首页
新随笔
联系
订阅
管理
扩展方法
Code
1
public
static
class
TestExFun
2
{
3
public
static
string
Foo(
this
string
str)
4
{
5
return
"
$
"
+
str
+
"
$
"
;
6
}
7
}
8
class
Program
9
{
10
static
void
Main(
string
[] args)
11
{
12
string
str
=
"
AAAAA
"
;
13
Console.WriteLine(str.Foo());
14
15
Console.Write(
"
Press Any Key To Continue
"
);
16
Console.ReadKey();
17
}
18
}
19
posted on
2008-11-17 07:57
TonyKent
阅读(
114
) 评论(
0
)
编辑
收藏
举报
会员力量,点亮园子希望
刷新页面
返回顶部