I\'ve seen both done in some code I\'m maintaining, but don\'t know the difference. Is there one?
let me add that myCustomer is an instance of Customer
Yes, there is a difference if you have an inherited type from Customer.
class VipCustomer : Customer { ..... } static void Main() { Customer c = new VipCustomer(); c.GetType(); // returns typeof(VipCustomer) }