Code Analysis Warning 2214 - How best to fix?
<p>I have the following code:</p>

<pre><code>    public partial class AuditLog : IBusinessEntity
    {
        public BusinessEntityType EntityType { get { return BusinessEntityType.AuditLog; } }

        /// &lt;summary&gt;
        /// Constructor accepting parameter initialization arguments
        /// &lt;/summary&gt;
        /// &lt;param name="userName"&gt;&lt;/param&gt;
        /// &lt;param name="entity"&gt;&lt;/param&gt;
        /// &lt;param name="command"&gt;&lt;/param&gt;
        /// &lt;param name="commandText"&gt;&lt;/param&gt;
        public AuditLog(string userName, BusinessEntityType entity, AuditLogCommand command, string commandText)
        {
            this.Timestamp = DateTime.Now;
            this.UserName = userName;
            this.Entity = entity.ToString();
            this.Command = command.ToString();
            this.CommandText = commandText;
        }
    }
</code></pre>

<p>This is generating a CA2214 warning. The <code>BusinessEntityType</code> and <code>AuditLogCommand</code> method parameters are both enumerations. I don't see what the issue is here, and therefore am not certain how to satisfy the warning.</p>

<p>Thanks.</p>
