How can I implement an interface that can take many object types
<p>excuse what seems like a real noobie question but how can I implement the following</p>

<pre><code>public interface IViewModel    {
        void Map&lt;T&gt;();
    }


  public class CarViewModel : IViewModel
    {
        public string Color { get; private set; }
        public int Tyres { get; private set; }

public CarViewModel(Car _car)

    }
</code></pre>

<p>//this is where the problem is  - there can be many differnt kind of object but I want them all to implement a Map function. I want to be able to assign the properties to incoming object. I also need to cater for IList of cars coming in that need to be populated. I suspect I am not using Generics properly</p>

<pre><code>public void Map&lt;T&gt;(Car _car){
Color = _car.Color;
Tyres = _car.Tyres;
}
</code></pre>
