john.hui
03-07-2007, 06:28 PM
Hello Spring Team,
I am trying to perform something similar to the following code in VB.Net but using Expression
TypeOf anObject Is aType
I have tried using the following expression.
anObject.GetType() == T(aType)
However, the above will not work if anObject is an instance of a type derived from aType. How then do we achieve the goal of checking for subtypes?
Thanks.
John Hui
I am trying to perform something similar to the following code in VB.Net but using Expression
TypeOf anObject Is aType
I have tried using the following expression.
anObject.GetType() == T(aType)
However, the above will not work if anObject is an instance of a type derived from aType. How then do we achieve the goal of checking for subtypes?
Thanks.
John Hui