+ if (expr_type.IsSubclassOf (TypeManager.enum_type))
+ expr_type = TypeManager.EnumToUnderlying (expr_type);
+
+ if (target_type.IsSubclassOf (TypeManager.enum_type))
+ target_type = TypeManager.EnumToUnderlying (target_type);
+
+
+ if (expr_type == target_type)
+ return true;