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: 
the HTML standard (Not the XHTML) is to have simply selected instead of selected="selected"

See here: <http://www.w3.org/TR/html4/interact/forms.html#adef-selected>

When XHTML was created to allow a a better integration with XML in HTML, (see <http://www.w3.org/MarkUp/2004/xhtml-faq#need>), the parts that do not fit to the XML-like structure requirements of HTML were corrected. So wordings like selected got transformed into selected="selected" to fit the standard
i think this is just for ease to user to specify the attribute value in most human readable form if he/she dont know what is true/false

```
<html>
<body>
<select>
<option>1</option>
<option selected="blah">2</option>
<option >3</option>
</select>
</body>

```

you see in above code i have not use `selected=selected`, i used what i want it still select the option value, or you can simply use `<option selected>2<option>`.