bool IsValueType(TypeMember type) { IType entity = type.Entity as IType; return null != entity && entity.IsValueType; }