作者liquidcrysta (crystal)
看板C_Sharp
标题[问题] check delegate
时间Wed Jul 6 02:41:05 2011
Hello programmers,
I'm doing a project involving serializing a class that contains delegate type
member.
To be serilizable, the delegates must correspond to static methods.
Anyone know how to check if your delegate member correspnds to a static method?
Pseudo code:
bool isStatic( yourDelegate member )
{
if typeof( member) = static (or serializable)
return truth
else
return false
}
Thanks!
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 131.107.65.118
1F:推 horngsh:use "Reflection" 07/07 12:10
2F:推 bdvstg:感谢楼上 多学到一种东西~~ 07/07 14:51