private bool VerifyType(IPermission perm) { // if perm is null, then obviously not of the same type return (perm != null) && (perm.GetType() == GetType()); }