Elmah.Error.ICloneable C# (CSharp) Method

ICloneable() private method

Creates a new object that is a copy of the current instance.
private ICloneable ( ) : object
return object
        object ICloneable.Clone()
        {
            //
            // Make a base shallow copy of all the members.
            //

            var copy = (Error) MemberwiseClone();

            //
            // Now make a deep copy of items that are mutable.
            //

            copy._serverVariables = CopyCollection(_serverVariables);
            copy._queryString = CopyCollection(_queryString);
            copy._form = CopyCollection(_form);
            copy._cookies = CopyCollection(_cookies);

            return copy;
        }