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: 
In SGML, an attribute may be minimized so that its value alone is short for both the name and the value, with the only possible value for the attribute in this case obviously being the attribute's own name. HTML uses this for boolean attributes, where the presence or absence of the attribute is what's meaningful, and its value is irrelevant. But in XML, minimized attributes were disallowed, so we wound up with the awkwardness that is `selected="selected"` when XHTML came into vogue. If you're writing HTML rather than XHTML, you can just write `selected`.
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