作者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
推 horngsh:use "Reflection" 07/07 12:10
推 bdvstg:感謝樓上 多學到一種東西~~ 07/07 14:51