Example #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="allowParam"></param>
        /// <param name="fmt"></param>
        /// <param name="memberInfo"></param>
        /// <param name="paramIndex"></param>
        /// <returns></returns>
        private string BuildParamName(bool allowParam, bool fmt, System.Reflection.MemberInfo memberInfo, int paramIndex)
        {
            string name = string.Empty;

            if (!allowParam)
            {
                name = string.Format("p{0}", paramIndex.ToString());
            }
            else
            {
                name = memberInfo == null?string.Format("p{0}", paramIndex.ToString()) : memberInfo.GetPropertyInfoName() + (fmt ? paramIndex.ToString() : "");
            }
            return(name);
        }