Fixed bug: trying to set read-only property

This doesn't throw an exception on .NET 4.0, but on .NET 4.5 it does.