示例#1
0
        internal void Remove(params Exception[] exceptions)
        {
            if (exceptions == null)
            {
                throw new ArgumentNullException("exceptions");
            }

            for (int i = 0; i < exceptions.Length; i++)
            {
                var ex = exceptions[i];

                if (ex != null)
                {
                    int idx = -1;
                    do
                    {
                        idx = Array.FindIndex(this._exceptions, (e) => { return(e == ex); });

                        if (idx > -1)
                        {
                            CArray.RemoveAt(ref this._exceptions, idx);
                        }
                    } while (idx > -1);
                }
            }
        }