Does it needs reflection?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Generic Generics in Managed C++
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
Yes:
Except for
[Serializable]
, which might also beyourType.IsSerializable
(if you check the IL,[Serializable]
doesn't actually get written as an attribute - there is a special type modifier; either approach works fine, though).