remove class type enum , use "is" of c# instead