HN user

batina

270 karma
Posts2
Comments19
View on HN

I don't think its possible with data annotations because there will me more complex logic in setter then I described.

I would just like to see get working like in auto-implemented property (without backing field) but setter to be manually implemented (with value keyword).

Also you can use propfull snippet for full property implementation.

Pattern Matching with Is Expressions

Awesome! Greatly reduces "ugly" boilerplate code like this:

    if (control is TextBox)
    {
        var textBox = (TextBox)control;
        textBox...
    }
Also, it would be great if Microsoft could make full properties in another way so that you do not have to write a backing field for it. Something like this:
    public string LastName
    {
        get;
        set 
        {
            if (value == "Batina")
                RaisePropertyChanged();
        }
    }
It would make code more cleaner.
WinRT demystified 15 years ago

Great explanation. Can't wait to finish downloading Windows 8 to start playing with it.

Asynchronous API that will really make a difference for the end user, right? There won't be any more waiting for UI to unfreeze :)