Mapping object properties, excluding types
<p>What i currently use</p>

<pre><code>public static void MapObjectPropertyValues(object e1, object e2)
    {
        foreach (var p in e1.GetType().GetProperties())
        {
            if (e2.GetType().GetProperty(p.Name) != null)
            {
                p.SetValue(e1, e2.GetType().GetProperty(p.Name).GetValue(e2, null), null);
            }   

        }
    }
</code></pre>

<p>I want to pass a third parameter, a generic list of types that i want to exclude from the mapping. For example strings and booleans. And check if <code>p</code> is of a type in the list. Any help is appreciated, thanks!</p>
