Get Set property - access modifier

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi All,

this issue curious me for long time.
Any one knows why Microsoft didn't allow to different access modifier
for set and get?
To be more specific, why didn't they allow us to do it like this?

static string CSVFileName
{
public get { return _CSVFileName; }
private set { _CSVFileName = value; }
}

In this way I don't need to set different property or add function.


Thanks.

.