/// <summary>
        /// Find Parameter.
        /// </summary>
        /// <param name="localReport">The local report instance.</param>
        /// <param name="name">The parameter's name.</param>
        /// <returns>Returns instance of ReportParameterInfo if found.</returns>
        private static ReportParameterInfo FindParameter(this LocalReport localReport,
                                                         string name)
        {
            ReportParameterInfo result = null;

            if (null == localReport)
            {
                return(result);
            }

            ReportParameterInfoCollection parameters = localReport.GetParameters();

            if (null != parameters && parameters.Count > 0)
            {
                result = parameters.FirstOrDefault(
                    (ReportParameterInfo para) =>
                {
                    return(string.Compare(para.Name, name, true) == 0);
                });
            }

            return(result);
        }