Question: I want to do something like that:

```
var result = genericList.ToDictionary(CalculateSomething(x => x.Date), y => y.Point);

```

So according with that example i want to call `CalculateSomething()` inside `.ToDictionary()`

is there any ways i can do that, i may do that through `foreach` loop but i would like to keep `linq` syntax.

Answer: 
For the disabled attribute I think it's the presence of the attribute that disables the element regardless of its value.

It guess one of the reasons could be to allow more values than just yes/no in the future. For instance, instead of visible=true/false, you can have visibility=visible/hidden/collapsed
Readability, a lot of HTML is not coded by people with computer science backgrounds so the concept of "Boolean" would be foreign to them in those terms. Also it improves readability for Computer Science and other technical users by providing reinforced clues as to the function of a given statement.