苯苯的博客
新随笔
联系
管理
21 Posts :: 0 Stories :: 3 Comments :: 0 Trackbacks
与我联系
发短消息
常用链接
我的随笔
我的空间
我的短信
我的评论
更多链接
我的参与
最新评论
我的标签
留言簿
给我留言
查看留言
随笔分类
ielts(7)
大杂烩(4)
工作(9)
随笔档案
2008年11月 (1)
2008年10月 (1)
2008年8月 (1)
2008年7月 (4)
2008年6月 (2)
2008年4月 (1)
2008年3月 (7)
2007年9月 (1)
收藏夹
好文
学习中
最新随笔
1. Visual Studio 2008 快捷键技巧
2. 重点句子----ielts(转载)
3. 在Stack中获得方法名称
4. 一个小项目的苦恼
5. Unable to find manifest signing certificate in the certificate store.(转载)(待补)
6. What does it mean that a method is static?
7. Const and readonly
8. write letters,mobile phone or computer-----ielts(转载)
9. 34个加分写作句型-----ielts(转载)
10. 无奈的代码(同事大作)
Google搜索
积分与排名
积分 - 948
排名 - 10825
最新评论
阅读排行榜
1. DataGridView绑定List
时无法进行添加删除操作的解决方法(441)
2. Unable to find manifest signing certificate in the certificate store.(转载)(待补)(55)
3. 多频同义词------ielts(转载)(52)
4. write letters,mobile phone or computer-----ielts(转载)(42)
5. 重点句子----ielts(转载)(35)
评论排行榜
1. DataGridView绑定List
时无法进行添加删除操作的解决方法(3)
2. 无奈的代码(同事大作)(0)
3. 34个加分写作句型-----ielts(转载)(0)
4. write letters,mobile phone or computer-----ielts(转载)(0)
5. Const and readonly(0)
在Stack中获得方法名称
public
static
string
GetCaseMethodName()
{
try
{
StackTrace st
=
new
StackTrace();
StackFrame[] stackFrames
=
st.GetFrames();
foreach
(StackFrame sf
in
stackFrames)
{
MethodBase mb
=
sf.GetMethod();
if
(mb.GetCustomAttributes(
typeof
(TestMethodAttribute),
false
).Length
>
0
)
return
mb.Name;
}
return
string
.Empty;
}
catch
{
throw
; }
}
posted on 2008-08-11 03:50
one
阅读(8)
评论(0)
编辑
收藏
网摘
所属分类:
工作
新用户注册
刷新评论列表
标题
姓名
主页
Email
(博主才能看到)
验证码
*
看不清,换一张
[
登录
][
注册
]
内容(请不要发表任何与政治相关的内容)
网站首页
新闻频道
社区
小组
博问
网摘
人才
找找看
Remember Me?
登录
使用高级评论
新用户注册
返回页首
恢复上次提交
[使用Ctrl+Enter键可以直接提交]
该文被作者在 2008-11-06 11:26 编辑过
Google站内搜索
China-pub 计算机图书网上专卖店!6.5万品种 2-8折!
近千种 9-95 新二手计算图书火热销售中!
开发者征途系统新作:《设计模式——基于C#的工程化实现及扩展》
相关文章:
相关链接:
所属分类的其他文章:
Visual Studio 2008 快捷键技巧
在Stack中获得方法名称
一个小项目的苦恼
Unable to find manifest signing certificate in the certificate store.(转载)(待补)
无奈的代码(同事大作)
DataGridView绑定List
时无法进行添加删除操作的解决方法
worlds used in work
dot NET Test Automation Recipes A Problem Solution Approach
Behind Blue Eyes
最新IT新闻:
Google操作系统已开始内部测试?
Google阅读器界面升级 全新改版
微软官方下载:Windows Vista SP2 Beta测试版
微软发布PC Live单机游戏客户端
Firefox遭“独家”恶意软件攻击
Powered by:
博客园
Copyright © one