Monday 15 March 2010

c# - How to determine whether the object is a value type -



c# - How to determine whether the object is a value type -

i utilize type.isvaluetype figure out in straightforward way in .net 4.5, when create universal apps using portable library, doesn't have equivalent method find if type value or not.

is there other trick finding this?

try type.gettypeinfo().isvaluetype. create sure have using statement system.reflection, gettypeinfo() extension method available.

c# .net-4.5 portable-class-library

No comments:

Post a Comment