private bool ProcessVisibilityAndContinue(Microsoft.ReportingServices.OnDemandReportRendering.Visibility aVisibility, VisibilityInstance aVisibilityInstance, Microsoft.ReportingServices.OnDemandReportRendering.TablixMember memberDef)
        {
            if (aVisibility == null)
            {
                return(true);
            }
            if (aVisibilityInstance != null && m_createSnapshot)
            {
                _ = aVisibilityInstance.StartHidden;
            }
            switch (aVisibility.HiddenState)
            {
            case SharedHiddenState.Always:
                if (m_createSnapshot)
                {
                    m_generateDocMap = false;
                    return(true);
                }
                return(false);

            case SharedHiddenState.Sometimes:
                if (aVisibilityInstance.CurrentlyHidden && aVisibility.ToggleItem == null)
                {
                    if (m_createSnapshot)
                    {
                        m_generateDocMap = false;
                        return(true);
                    }
                    return(false);
                }
                break;

            default:
                if (memberDef != null && memberDef.IsTotal)
                {
                    if (m_createSnapshot)
                    {
                        m_generateDocMap = false;
                        return(true);
                    }
                    return(false);
                }
                break;
            }
            return(true);
        }
        private bool ProcessVisibilityAndContinue(AspNetCore.ReportingServices.OnDemandReportRendering.Visibility aVisibility, VisibilityInstance aVisibilityInstance, AspNetCore.ReportingServices.OnDemandReportRendering.TablixMember memberDef)
        {
            if (aVisibility == null)
            {
                return(true);
            }
            if (aVisibilityInstance != null && this.m_createSnapshot)
            {
                bool startHidden = aVisibilityInstance.StartHidden;
            }
            switch (aVisibility.HiddenState)
            {
            case SharedHiddenState.Always:
                if (this.m_createSnapshot)
                {
                    this.m_generateDocMap = false;
                    return(true);
                }
                return(false);

            case SharedHiddenState.Sometimes:
                if (!aVisibilityInstance.CurrentlyHidden)
                {
                    break;
                }
                if (aVisibility.ToggleItem != null)
                {
                    break;
                }
                if (this.m_createSnapshot)
                {
                    this.m_generateDocMap = false;
                    return(true);
                }
                return(false);

            default:
                if (memberDef == null)
                {
                    break;
                }
                if (!memberDef.IsTotal)
                {
                    break;
                }
                if (this.m_createSnapshot)
                {
                    this.m_generateDocMap = false;
                    return(true);
                }
                return(false);
            }
            return(true);
        }