I have a class named Car with property Name. Now every time I like to change Name of my Car I must write Car1.Name = "Porka Turbo". Now what I would like to acomplish is 5 characters less to write like this:
Car1 = "Porka Turbo"
It should work like this: if I assign a class derrived from Car class it should make regular class assignment, but when I assign string to my class than this string should be redirected to property called "Name".
So that it will work the same as:
Car1.Name = "Porka Turbo"
Is this possible in C# .NET 3.5 and if not do you know any other method to write less in this particular example?