Example #1
0
        /// <summary>
        /// ref�ν� SqlParameter[]�� �޾Ƽ� ���ο� SqlParameter[] �� �߰��Ѵ�.
        /// </summary>
        /// <param name="paramArray">���� SqlParameter[]</param>
        /// <param name="newParameters">�߰��ϰ��� �ϴ� SqlParameter[]</param>
        public static void Add( ref SqlParameter[] paramArray, params SqlParameter[] newParameters)
        {
            SqlParameter[] newArray = Array.CreateInstance(typeof(SqlParameter), paramArray.Length + newParameters.Length) as SqlParameter[];
             paramArray.CopyTo(newArray, 0);
             newParameters.CopyTo(newArray, paramArray.Length);

             paramArray = newArray;
        }